2019-09-16 08:06:54 +02:00
|
|
|
mail = {
|
2019-09-16 08:15:43 +02:00
|
|
|
-- api version
|
|
|
|
apiversion = 1.1,
|
|
|
|
|
2019-09-16 08:06:54 +02:00
|
|
|
-- mail directory
|
|
|
|
maildir = minetest.get_worldpath().."/mails",
|
2022-08-02 15:03:31 +02:00
|
|
|
contactsdir = minetest.get_worldpath().."/mails/contacts"
|
2019-09-16 08:06:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
2020-07-31 12:36:28 +02:00
|
|
|
dofile(MP .. "/util/normalize.lua")
|
2019-09-16 08:06:54 +02:00
|
|
|
dofile(MP .. "/chatcommands.lua")
|
|
|
|
dofile(MP .. "/migrate.lua")
|
|
|
|
dofile(MP .. "/hud.lua")
|
|
|
|
dofile(MP .. "/storage.lua")
|
|
|
|
dofile(MP .. "/api.lua")
|
|
|
|
dofile(MP .. "/gui.lua")
|
|
|
|
dofile(MP .. "/onjoin.lua")
|
|
|
|
|
|
|
|
-- migrate storage
|
|
|
|
mail.migrate()
|
2022-08-02 14:56:32 +02:00
|
|
|
|
|
|
|
if minetest.get_modpath("mtt") then
|
|
|
|
dofile(MP .. "/mtt.lua")
|
|
|
|
end
|