summaryrefslogtreecommitdiff
path: root/chatcommands.lua
diff options
context:
space:
mode:
authorShadowNinja <noreply@gmail.com>2013-09-26 10:30:36 -0400
committerShadowNinja <noreply@gmail.com>2013-09-26 10:30:36 -0400
commit0c20a1b616fb1bc72e6db9fad061b12ee044602a (patch)
tree6b249b66049ff045756ec850436f1ee7df6271ba /chatcommands.lua
parent17b32663b76428f84937ab79fab38259e6a1a831 (diff)
Show area owners on the hud (inspired by landrush)
Diffstat (limited to 'chatcommands.lua')
-rw-r--r--chatcommands.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/chatcommands.lua b/chatcommands.lua
index 341e70c..b1dcfd8 100644
--- a/chatcommands.lua
+++ b/chatcommands.lua
@@ -169,29 +169,6 @@ minetest.register_chatcommand("rename_area", {
end})
-minetest.register_chatcommand("list_owners", {
- params = "",
- description = "List the owners of your position",
- privs = {},
- func = function(name, param)
- local player = minetest.get_player_by_name(name)
- if not player then
- minetest.chat_send_player(name,
- "Unable to find your position.")
- return
- end
- local pos = vector.round(player:getpos())
- local owners = areas:getNodeOwners(pos)
- if #owners > 0 then
- minetest.chat_send_player(name,
- "Owners: "..table.concat(owners, ", "))
- else
- minetest.chat_send_player(name,
- "Your position is unowned.")
- end
-end})
-
-
minetest.register_chatcommand("find_areas", {
params = "<regexp>",
description = "Find areas using a Lua regular expression",