Merge pull request #2 from DonBatman/master

Added areas support

--Thanks DonBatman!
This commit is contained in:
Robbie Ferguson 2016-05-12 22:05:48 -04:00
commit 52b520fa23
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