2017-03-13 18:26:38 -03:00
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
local modpath = minetest.get_modpath(modname)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dofile(modpath.."/config.lua")
|
2017-03-13 23:49:12 -03:00
|
|
|
dofile(modpath.."/translate.lua")
|
2017-03-13 18:26:38 -03:00
|
|
|
dofile(modpath.."/api.lua")
|
|
|
|
dofile(modpath.."/commands.lua")
|
|
|
|
dofile(modpath.."/item_atm.lua")
|
|
|
|
dofile(modpath.."/item_strongbox.lua")
|
|
|
|
--dofile(modpath.."/item_strongbox_old.lua")
|
|
|
|
|
|
|
|
|
|
|
|
dofile(modpath.."/item_miner_cash.lua")
|
2017-03-13 19:01:53 -03:00
|
|
|
dofile(modpath.."/item_barter_table.lua")
|
2017-03-13 18:26:38 -03:00
|
|
|
dofile(modpath.."/item_dispensing_machine.lua")
|
|
|
|
-- --dofile(path.."/item_rent_door.lua")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modMinerTrade.doLoad()
|
|
|
|
|
|
|
|
minetest.register_on_leaveplayer(function(player)
|
|
|
|
modMinerTrade.doSave()
|
|
|
|
end)
|
|
|
|
|
|
|
|
minetest.register_on_shutdown(function()
|
|
|
|
modMinerTrade.doSave()
|
|
|
|
minetest.log('action',"[STRONGBOX] Salvando cofre de todos os jogadores no arquivo '"..modMinerTrade.urlTabela.."'!")
|
|
|
|
end)
|
|
|
|
|
|
|
|
minetest.log('action',"["..modname:upper().."] Carregado!")
|