mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-08 17:10:32 +01:00
Require server priv
This commit is contained in:
parent
4199f645f3
commit
fedc4c51fa
3
init.lua
3
init.lua
@ -26,8 +26,7 @@ local function renumber(t)
|
||||
return res
|
||||
end
|
||||
|
||||
minetest.register_privilege("schemedit")
|
||||
local NEEDED_PRIV = "schemedit"
|
||||
local NEEDED_PRIV = "server"
|
||||
local function check_priv(player_name, quit)
|
||||
local privs = minetest.get_player_privs(player_name)
|
||||
if privs[NEEDED_PRIV] then
|
||||
|
Loading…
Reference in New Issue
Block a user