From ef2b6fe1d5ae4ad5e118170866373bfe42253023 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 28 Apr 2020 16:25:57 +0200 Subject: [PATCH] move pipeworks chatcommands to monitoring --- pipeworks.lua | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/pipeworks.lua b/pipeworks.lua index 5e49648..3b5c076 100644 --- a/pipeworks.lua +++ b/pipeworks.lua @@ -1,30 +1,5 @@ -minetest.register_chatcommand("pipeworks_flush", { - description = "flushes the pipeworks tubes", - privs = {server=true}, - func = function(name) - minetest.log("warning", "Player " .. name .. " flushes the pipeworks tubes") - local count = 0 - for id, entity in pairs(pipeworks.luaentity.entities) do - entity:remove() - count = count + 1 - end - minetest.log("warning", "Flushed: " .. count .. " items") - return true, "Flushed: " .. count .. " items" - end -}) -minetest.register_chatcommand("pipeworks_stats", { - description = "Returns some pipeworks stats", - privs = {interact=true}, - func = function(name) - local count = 0 - for id, entity in pairs(pipeworks.luaentity.entities) do - count = count + 1 - end - return true, "Items in tubes: " .. count - end -}) -- add "Done" button -- idea and implementation originally by @SwissalpS