mirror of
https://github.com/minetest-mods/areas.git
synced 2024-11-15 07:00:18 +01:00
32 lines
844 B
Lua
32 lines
844 B
Lua
|
-- Areas mod by ShadowNinja
|
||
|
-- Based on node_ownership
|
||
|
-- License: GPLv2+
|
||
|
|
||
|
areas = {}
|
||
|
|
||
|
areas.startTime = os.clock()
|
||
|
|
||
|
areas.modpath = minetest.get_modpath("areas")
|
||
|
dofile(areas.modpath.."/settings.lua")
|
||
|
dofile(areas.modpath.."/api.lua")
|
||
|
dofile(areas.modpath.."/internal.lua")
|
||
|
dofile(areas.modpath.."/chatcommands.lua")
|
||
|
dofile(areas.modpath.."/pos.lua")
|
||
|
dofile(areas.modpath.."/interact.lua")
|
||
|
dofile(areas.modpath.."/legacy.lua")
|
||
|
|
||
|
areas:load()
|
||
|
|
||
|
minetest.register_privilege("areas", {description = "Can administer areas"})
|
||
|
|
||
|
if not minetest.registered_privileges[areas.self_protection_privilege] then
|
||
|
minetest.register_privilege(areas.self_protection_privilege,
|
||
|
{description = "Can protect areas"})
|
||
|
end
|
||
|
|
||
|
if minetest.setting_getbool("log_mod") then
|
||
|
local diffTime = os.clock() - areas.startTime
|
||
|
print("[areas] loaded in "..diffTime.."s.")
|
||
|
end
|
||
|
|