From 904a2869fd34a56d833707dd97d0b35ae6210b99 Mon Sep 17 00:00:00 2001 From: ANAND Date: Sun, 26 Apr 2020 14:51:51 +0530 Subject: [PATCH] ctf_classes: Skip proximity check if player has ctf_admin priv --- mods/ctf/ctf_classes/api.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ctf/ctf_classes/api.lua b/mods/ctf/ctf_classes/api.lua index 174c81c..8bb91a7 100644 --- a/mods/ctf/ctf_classes/api.lua +++ b/mods/ctf/ctf_classes/api.lua @@ -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