diff options
author | fairiestoy <johannesvk@web.de> | 2013-09-28 23:34:41 -0700 |
---|---|---|
committer | fairiestoy <johannesvk@web.de> | 2013-09-28 23:34:41 -0700 |
commit | a482167a5118b3cc2f66dccd1688b8b63e8032c0 (patch) | |
tree | 38cbfb20a8a41a2e464e7035fd2787a94c4036a4 /chatcommands.lua | |
parent | 065543f3321218af9f9df7749608876110bf5ab8 (diff) | |
parent | 2f208687d7f56af0056a9b5bb1d24360d1e619df (diff) |
Merge pull request #1 from Bremaweb/master
Update fork
Diffstat (limited to 'chatcommands.lua')
-rw-r--r-- | chatcommands.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chatcommands.lua b/chatcommands.lua index d0df825..d452b63 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -15,6 +15,23 @@ minetest.register_chatcommand("landowner", { end, }) +minetest.register_chatcommand("userunclaim", { + params = "player", + privs = {landrush=true}, + description = "Unclaims all of a players areas", + func = function(name, param) + qdone = 0 + for k,v in pairs(claims) do + if claims[k].owner == param then + claims[k] = nil + qdone = qdone + 1 + end + end + landrush.save_claims() + minetest.chat_send_player(name,tostring(qdone).." claims unclaims for "..param) + end +}) + minetest.register_chatcommand("unclaim", { params = "", description = "unclaims the current map chunk", |