Move: code to right file

This commit is contained in:
Coder12a 2019-03-07 19:26:22 -06:00
parent d480cdb9f5
commit e542c3a0c1

View File

@ -130,6 +130,12 @@ function register_flag(def)
return itemstack
end
local team, index = ctf.get_territory_owner(pos)
if team ~= nil then
minetest.chat_send_player(name, "You cannot place a flag in a protected area!")
return itemstack
end
local tplayer = ctf.player_or_nil(name)
if tplayer and ctf.team(tplayer.team) then
if ctf.player(name).auth == false then