123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- reload = reload or {}
- reload.modpath = minetest.get_modpath("reload")
- dofile(reload.modpath .. "/config.lua")
- dofile(reload.modpath .. "/api.lua")
- dofile(reload.modpath .. "/chatcommands.lua")
- reload.chat_send_player = function(name, message)
- minetest.chat_send_player(name, message)
- end
- reload.log = function(level, message)
- minetest.log(level, message)
- end
- if not reload.file_registered('reload:init') then
- reload.register_file('reload:init', reload.modpath .. '/init.lua', false)
- reload.register_file('reload:api', reload.modpath .. '/api.lua', false)
- reload.register_file('reload:chat', reload.modpath .. '/chatcommands.lua', false)
- reload.register_file('reload:config', reload.modpath .. '/config.lua', false)
- end
|