From df8f0d601e02eee64aa029bb283a23b26c479223 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 23 May 2013 22:03:44 -0500 Subject: make online protection an option --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index fe9f727..3e10b11 100644 --- a/init.lua +++ b/init.lua @@ -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 -- -- cgit v1.2.3