From 0c20a1b616fb1bc72e6db9fad061b12ee044602a Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Thu, 26 Sep 2013 10:30:36 -0400 Subject: Show area owners on the hud (inspired by landrush) --- chatcommands.lua | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'chatcommands.lua') 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 = "", description = "Find areas using a Lua regular expression", -- cgit v1.2.3