Improve flag interact prevention message (#29)

This commit is contained in:
Lone_Wolf 2018-12-19 17:32:11 -08:00 committed by Billy S
parent 5676bbcf6b
commit d45b7c5a54

View File

@ -31,9 +31,9 @@ function minetest.is_protected(pos, name)
return old_is_protected(pos, name) return old_is_protected(pos, name)
end end
if f.name then if f.name then
minetest.chat_send_player(name, "You need to be white listed in-order to build on flag " .. f.name .. "'s land") minetest.chat_send_player(name, "You need to be white listed in-order to interact on flag " .. f.name .. "'s land")
else else
minetest.chat_send_player(name, "You need to be white listed in-order to build on this flag's land") minetest.chat_send_player(name, "You need to be white listed in-order to interact on this flag's land")
end end
return true return true
else else
@ -71,7 +71,7 @@ function minetest.is_protected(pos, name)
player:setpos(pla_pos) player:setpos(pla_pos)
end end
end end
minetest.chat_send_player(name, "You cannot dig on team "..team.."'s land") minetest.chat_send_player(name, "You cannot interact on team "..team.."'s land")
return true return true
end end
end end