diff options
author | Brandon <brandon@bremaweb.com> | 2013-05-23 22:03:44 -0500 |
---|---|---|
committer | Brandon <brandon@bremaweb.com> | 2013-05-23 22:03:44 -0500 |
commit | df8f0d601e02eee64aa029bb283a23b26c479223 (patch) | |
tree | 702c99886e1129fd0fb83fc87c0a936289f46630 /init.lua | |
parent | da8cf8b940ce75974d7981bd5cd2651bbbfa0cc3 (diff) |
make online protection an option
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ landrush = {} -- Change this to true if you want to require people to claim an area before building or digging local requireClaim = false +local onlineProtection = true local chunkSize = 16 local claims = {} @@ -117,7 +118,7 @@ function landrush.can_interact(name, pos) return nil end else - if ( claims[chunk].owner ~= name ) then + if ( claims[chunk].owner ~= name and onlineProtection == false ) then minetest.chat_send_player( claims[chunk].owner, "You are being griefed by "..name.." at "..minetest.pos_to_string(pos) ) -- TODO -- |