ctf_classes: Skip proximity check if player has ctf_admin priv

This commit is contained in:
ANAND 2020-04-26 14:51:51 +05:30
parent e18fa14af0
commit 904a2869fd
No known key found for this signature in database
GPG key ID: 3AD8A3C4A51AAB97

View file

@ -147,6 +147,10 @@ local function get_flag_pos(player)
end
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)
if not flag_pos then
return false