diff options
author | BremaWeb <brandon@bremaweb.com> | 2013-06-14 15:51:23 -0500 |
---|---|---|
committer | BremaWeb <brandon@bremaweb.com> | 2013-06-14 15:51:23 -0500 |
commit | e3a1b1cc130bf486d66d3390231ccedc102e15d3 (patch) | |
tree | d39ada91872790fbc63dbfe1fb2ec703d53adbcf | |
parent | 4162de5eebbd87ac3114c52c464b07064f85e036 (diff) |
landrush priv works with landrush chat commands
-rw-r--r-- | init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3,18 +3,18 @@ landrush = {} -- Change this to true if you want to require people to claim an area before building or digging -local requireClaim = false +local requireClaim = true local onlineProtection = true local chunkSize = 16 local claims = {} -- These are items that can be dug in unclaimed areas when requireClaim is true -local global_dig_list = {["default:ladder"]=true,["default:leaves"]=true,["default:tree"]=true} +local global_dig_list = {["default:ladder"]=true,["default:leaves"]=true,["default:tree"]=true,["default:grass"]=true,["default:grass_1"]=true,["default:grass_2"]=true,["default:grass_3"]=true,["default:grass_4"]=true} local filename = minetest.get_worldpath().."/landrush-claims" -minetest.register_privilege("landrush", "Allows player to dig and build anywhere") +minetest.register_privilege("landrush", "Allows player to dig and build anywhere, and use the sharearea and unclaim commands on any claim.") function landrush.load_claims() local file = io.open(filename, "r") @@ -158,7 +158,7 @@ function minetest.node_dig(pos, node, digger) minetest.chat_send_player(player, "Area owned by "..owner) else -- allow them to dig the global dig list - if ( global_dig[node['name']] ~= true ) then + if ( global_dig_list[node['name']] ~= true ) then minetest.chat_send_player(player,"Area unclaimed, claim this area to build") else landrush.default_dig(pos, node, digger) |