summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormauvebic <mauvebic@gmail.com>2014-01-20 17:21:23 -0500
committermauvebic <mauvebic@gmail.com>2014-01-20 17:21:23 -0500
commit2401d22b594544408629876a5b676821785da5d8 (patch)
tree8c2dc6771533e70158f001e9dc882d94a8687faf
parentcd75c51451cc99cc969bb02159076dc3ab9ba69b (diff)
prevent guests from claiming
to allow guests to visit server without ability to claim land.
-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")