2016-06-13 16:54:19 -07:00
|
|
|
-- global variables
|
2016-06-10 17:23:27 -07:00
|
|
|
servertools = {}
|
2016-06-20 18:27:54 -07:00
|
|
|
st = servertools -- shortcut for servertools functions and variables
|
|
|
|
-- global path variables
|
|
|
|
servertools.modpath = minetest.get_modpath("servertools") -- modpath
|
|
|
|
-- local variables
|
|
|
|
local modpath = servertools.modpath
|
2016-06-13 16:54:19 -07:00
|
|
|
|
|
|
|
-- logger
|
|
|
|
function servertools.log(content, log_type)
|
|
|
|
if log_type == nil then log_type = "action" end
|
|
|
|
minetest.log(log_type, "[ServerTools] "..content)
|
|
|
|
end
|
|
|
|
|
2016-06-20 18:33:33 -07:00
|
|
|
-- load default modules
|
|
|
|
dofile(modpath.."/data.lua")
|
2016-05-30 07:27:23 -07:00
|
|
|
dofile(modpath.."/functions.lua")
|
|
|
|
dofile(modpath.."/privs.lua")
|
2016-06-20 18:33:33 -07:00
|
|
|
|
2016-05-30 07:27:23 -07:00
|
|
|
dofile(modpath.."/genesis.lua")
|
|
|
|
dofile(modpath.."/misc.lua")
|
2016-06-13 09:54:50 -07:00
|
|
|
dofile(modpath.."/filter.lua")
|
2016-05-01 09:12:42 -07:00
|
|
|
|
2016-06-29 12:14:03 -07:00
|
|
|
servertools.log("[ServerTools] Enabled Modules Loaded!") --print to log enabled modules loaded
|