mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 09:30: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
|
return res
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_privilege("schemedit")
|
local NEEDED_PRIV = "server"
|
||||||
local NEEDED_PRIV = "schemedit"
|
|
||||||
local function check_priv(player_name, quit)
|
local function check_priv(player_name, quit)
|
||||||
local privs = minetest.get_player_privs(player_name)
|
local privs = minetest.get_player_privs(player_name)
|
||||||
if privs[NEEDED_PRIV] then
|
if privs[NEEDED_PRIV] then
|
||||||
|
Loading…
Reference in New Issue
Block a user