give to admin automatically by settings
This commit is contained in:
parent
0504305846
commit
10256bc6f2
5
init.lua
5
init.lua
@ -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
|
||||
})
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user