diff options
author | Bremaweb <brandon@bremaweb.com> | 2014-02-05 21:05:43 -0600 |
---|---|---|
committer | Bremaweb <brandon@bremaweb.com> | 2014-02-05 21:05:43 -0600 |
commit | 917c2e3cabcd24ead56d57537e17654d986bb78b (patch) | |
tree | 8c2dc6771533e70158f001e9dc882d94a8687faf | |
parent | cd75c51451cc99cc969bb02159076dc3ab9ba69b (diff) | |
parent | 2401d22b594544408629876a5b676821785da5d8 (diff) |
Merge pull request #7 from mauvebic/patch-1
prevent guests from claiming
-rw-r--r-- | init.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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") |