summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-05 15:04:57 +0100
committermadmaxoft <github@xoft.cz>2014-01-05 15:15:59 +0100
commit44cf86dcf98fa7c53eb59473e6eb9d8eb365de09 (patch)
tree00d6c038e5320c91387ad43bf0971f9adf23a4ac /MCServer/Plugins
parentFix #506 (diff)
downloadcuberite-44cf86dcf98fa7c53eb59473e6eb9d8eb365de09.tar
cuberite-44cf86dcf98fa7c53eb59473e6eb9d8eb365de09.tar.gz
cuberite-44cf86dcf98fa7c53eb59473e6eb9d8eb365de09.tar.bz2
cuberite-44cf86dcf98fa7c53eb59473e6eb9d8eb365de09.tar.lz
cuberite-44cf86dcf98fa7c53eb59473e6eb9d8eb365de09.tar.xz
cuberite-44cf86dcf98fa7c53eb59473e6eb9d8eb365de09.tar.zst
cuberite-44cf86dcf98fa7c53eb59473e6eb9d8eb365de09.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/InfoDump.lua28
1 files changed, 0 insertions, 28 deletions
diff --git a/MCServer/Plugins/InfoDump.lua b/MCServer/Plugins/InfoDump.lua
index f140b0d86..54d7a6042 100644
--- a/MCServer/Plugins/InfoDump.lua
+++ b/MCServer/Plugins/InfoDump.lua
@@ -73,34 +73,6 @@ end
---- Returns an array-table of all commands that are in the specified category
--- Each item is a table {Command = "/command string", Info = {<command info in PluginInfo>}}
-local function GetCategoryCommands(a_PluginInfo, a_CategoryName)
- local res = {};
- local function AppendCategoryCommand(a_Prefix, a_Commands)
- for cmd, info in pairs(a_Commands) do
- info.Category = info.Category or {};
- if (type(info.Category) == "string") then
- info.Category = {info.Category};
- end
- for idx, cat in ipairs(info.Category) do
- if (cat == a_CategoryName) then
- table.insert(res, {Command = a_Prefix .. cmd, Info = info});
- end
- end
- if (info.Subcommands ~= nil) then
- AppendCategoryCommand(a_Prefix .. cmd .. " ", info.Subcommands);
- end
- end
- end
- AppendCategoryCommand("", a_PluginInfo.Commands);
- return res;
-end
-
-
-
-
-
--- Builds an array of categories, each containing all the commands belonging to the category,
-- and the category description, if available.
-- Returns the array table, each item has the following format: