fix admin config privilegies

main
Герхард PICCORO Lenz McKAY 2022-01-26 09:07:41 -04:00
parent 4f09e47558
commit d8d91fd4b2
1 changed files with 6 additions and 4 deletions

View File

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