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
|
||||
|
||||
local privs_give_to_admin = false
|
||||
|
||||
if admin_privs then privs_give_to_admin = true end
|
||||
|
||||
-- priv
|
||||
core.register_privilege("pvpinvul", {
|
||||
description = S("Invulnerable in PVP"),
|
||||
give_to_singleplayer = false
|
||||
if admin_privs then
|
||||
give_to_admin = true
|
||||
end
|
||||
give_to_singleplayer = false,
|
||||
give_to_admin = privs_give_to_admin,
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user