1
0
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:
Wuzzy 2020-05-15 03:12:19 +02:00
parent 4199f645f3
commit fedc4c51fa

View File

@ -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