summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2014-02-22 14:31:36 -0600
committerBrandon <brandon@bremaweb.com>2014-02-22 14:31:36 -0600
commitc554091b4329a5d8f44a317281e2e19e3c397722 (patch)
tree9bb07f0794eb76ffd99245d638026ac0238caf48
parent38f06a8df0a8accefedbd1b10e5a22f9ae2b13a2 (diff)
parent917c2e3cabcd24ead56d57537e17654d986bb78b (diff)
Merge branch 'master' of https://github.com/Bremaweb/landrush
-rw-r--r--init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 9609311..7d0cb87 100644
--- a/init.lua
+++ b/init.lua
@@ -32,6 +32,11 @@ landrush.load_claims()
on_place = function(itemstack, placer, pointed_thing)
owner = landrush.get_owner(pointed_thing.above)
player = placer:get_player_name()
+
+ if player:find("[gG]uest") then
+ minetest.chat_send_player(player,"Guests cannot claim land")
+ return itemstack
+ end
if ( pointed_thing.above.y < -200 ) then
minetest.chat_send_player(player,"You cannot claim below -200")