fix admin config privilegies
This commit is contained in:
parent
4f09e47558
commit
d8d91fd4b2
10
init.lua
10
init.lua
@ -55,13 +55,15 @@ if core.get_modpath("irc") then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local privs_give_to_admin = false
|
||||||
|
|
||||||
|
if admin_privs then privs_give_to_admin = true end
|
||||||
|
|
||||||
-- priv
|
-- priv
|
||||||
core.register_privilege("pvpinvul", {
|
core.register_privilege("pvpinvul", {
|
||||||
description = S("Invulnerable in PVP"),
|
description = S("Invulnerable in PVP"),
|
||||||
give_to_singleplayer = false
|
give_to_singleplayer = false,
|
||||||
if admin_privs then
|
give_to_admin = privs_give_to_admin,
|
||||||
give_to_admin = true
|
|
||||||
end
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user