mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-05 10:00:26 +01:00
911f49faa4
- Added area_high_limits privilege, similar to (buggy) megabuilder
40 lines
1.0 KiB
Lua
Executable File
40 lines
1.0 KiB
Lua
Executable File
-- Areas mod by ShadowNinja
|
|
-- Based on node_ownership
|
|
-- License: LGPLv2+
|
|
|
|
areas = {}
|
|
|
|
areas.adminPrivs = {areas=true}
|
|
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")
|
|
dofile(areas.modpath.."/hud.lua")
|
|
|
|
areas:load()
|
|
|
|
minetest.register_privilege("areas", {
|
|
description = "Can administer areas."
|
|
})
|
|
minetest.register_privilege("areas_high_limit", {
|
|
description = "Can can more, bigger areas."
|
|
})
|
|
|
|
if not minetest.registered_privileges[areas.config.self_protection_privilege] then
|
|
minetest.register_privilege(areas.config.self_protection_privilege, {
|
|
description = "Can protect areas.",
|
|
})
|
|
end
|
|
|
|
if minetest.setting_getbool("log_mod") then
|
|
local diffTime = os.clock() - areas.startTime
|
|
minetest.log("action", "areas loaded in "..diffTime.."s.")
|
|
end
|
|
|