give to admin automatically by settings

main
Герхард PICCORO Lenz McKAY 2022-01-25 18:00:46 -04:00
parent 0504305846
commit 10256bc6f2
2 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,8 @@ end
local kill_hitter = core.settings:get_bool("pvpinvul_kill_hitter") or false
local admin_privs = core.settings:get_bool("pvpinvul_admin_privs") or true
-- compat with irc mod fork
if core.get_modpath("irc") then
if irc.saysec == nil then
@ -57,6 +59,9 @@ end
core.register_privilege("pvpinvul", {
description = S("Invulnerable in PVP"),
give_to_singleplayer = false
if admin_privs then
give_to_admin = true
end
})

View File

@ -1,3 +1,7 @@
# if enabled will Kill with one hit only when pvpinvul are grant
pvpinvul_kill_hitter (Kill hitter to pvpinvul privilegies) bool false
# if enable admin will be pvp invulnerable
pvpinvul_admin_privs (Give automatically to admins pvp ivul privs) bool true