summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-03-02 16:48:55 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-03-02 16:48:55 +0100
commit0c8d08cb0962640bb3688f80ff782245daa2747c (patch)
tree4aba32a1f40da8f01aa8cfee8a3f55f2d357b40c /MCServer/Plugins
parentUsing comma instead of string concatenation. (diff)
downloadcuberite-0c8d08cb0962640bb3688f80ff782245daa2747c.tar
cuberite-0c8d08cb0962640bb3688f80ff782245daa2747c.tar.gz
cuberite-0c8d08cb0962640bb3688f80ff782245daa2747c.tar.bz2
cuberite-0c8d08cb0962640bb3688f80ff782245daa2747c.tar.lz
cuberite-0c8d08cb0962640bb3688f80ff782245daa2747c.tar.xz
cuberite-0c8d08cb0962640bb3688f80ff782245daa2747c.tar.zst
cuberite-0c8d08cb0962640bb3688f80ff782245daa2747c.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/InfoDump.lua21
1 files changed, 7 insertions, 14 deletions
diff --git a/MCServer/Plugins/InfoDump.lua b/MCServer/Plugins/InfoDump.lua
index e7ed157e3..ede4c0e8b 100644
--- a/MCServer/Plugins/InfoDump.lua
+++ b/MCServer/Plugins/InfoDump.lua
@@ -317,26 +317,19 @@ local function WriteCommandsCategoryGithub(a_Category, f)
if (CategoryName == "") then
CategoryName = "General";
end
- f:write("\n## ", GithubizeString(a_Category.DisplayName or CategoryName), "\n");
+ f:write("\n### ", GithubizeString(a_Category.DisplayName or CategoryName), "\n");
-- Write description:
if (a_Category.Description ~= "") then
- f:write(GithubizeString(a_Category.Description), "\n");
+ f:write(GithubizeString(a_Category.Description), "\n\n");
end
+ f:write("| Command | Permission | Discription | \n")
+ f:write("| ------- | ---------- | ----------- | \n")
+
-- Write commands:
- f:write("\n");
for idx2, cmd in ipairs(a_Category.Commands) do
- f:write("\n### ", cmd.CommandString, "\n", GithubizeString(cmd.Info.HelpString or "UNDOCUMENTED"), "\n\n");
- if (cmd.Info.Permission ~= nil) then
- f:write("Permission required: **", cmd.Info.Permission, "**\n\n");
- end
- if (cmd.Info.DetailedDescription ~= nil) then
- f:write(GithubizeString(cmd.Info.DetailedDescription));
- end
- if (cmd.Info.ParameterCombinations ~= nil) then
- WriteCommandParameterCombinationsGithub(cmd.CommandString, cmd.Info.ParameterCombinations, f);
- end
+ f:write("|", cmd.CommandString, " | ", cmd.Info.Permission or "", " | ", GithubizeString(cmd.Info.HelpString or "UNDOCUMENTED"), "| \n")
end
f:write("\n\n")
end
@@ -601,7 +594,7 @@ local function DumpPluginInfoGithub(a_PluginFolder, a_PluginInfo)
f:write(GithubizeString(a_PluginInfo.Description), "\n");
DumpAdditionalInfoGithub(a_PluginInfo, f);
DumpCommandsGithub(a_PluginInfo, f);
- DumpPermissionsGithub(a_PluginInfo, f);
+ --DumpPermissionsGithub(a_PluginInfo, f); -- Seems a little overkill since they are already mentioned in the commands.
f:close();
end