Move: code to right file
This commit is contained in:
parent
d480cdb9f5
commit
e542c3a0c1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user