Added areas support

This commit is contained in:
DonBatman 2016-05-12 18:45:09 -07:00
parent 4dd4591d4f
commit c1fedad691
2 changed files with 2 additions and 1 deletions

1
depends.txt Normal file

@ -0,0 +1 @@
areas

@ -90,7 +90,7 @@ local function tpc_send(player,coordinates)
-- In future release we'll actually query the player who owns the area, if they're online, and ask for their permission.
local protected = minetest.is_protected(target_coords,pname)
if protected then
local owner_string = get_owner_string(target_coords)
local owner_string = areas:getNodeOwners(target_coords)
if pname ~= owner_string then
minetest.chat_send_player(player, "Error: These coordinates are within a protected area.")
return