ctf_classes: Skip proximity check if player has ctf_admin priv
This commit is contained in:
parent
e18fa14af0
commit
904a2869fd
1 changed files with 4 additions and 0 deletions
|
@ -147,6 +147,10 @@ local function get_flag_pos(player)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ctf_classes.can_change(player)
|
function ctf_classes.can_change(player)
|
||||||
|
if minetest.check_player_privs(player, "ctf_admin") then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
local flag_pos = get_flag_pos(player)
|
local flag_pos = get_flag_pos(player)
|
||||||
if not flag_pos then
|
if not flag_pos then
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue