summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-04 22:11:19 +0100
committermadmaxoft <github@xoft.cz>2014-01-04 22:11:19 +0100
commit20da685002f9a1dcb1448ed4778ea43863193916 (patch)
tree755086978303d4e73be8dcaaf392ab786b29e033 /MCServer/Plugins
parentAdded forum output for commands' DetailedHelp array. (diff)
downloadcuberite-20da685002f9a1dcb1448ed4778ea43863193916.tar
cuberite-20da685002f9a1dcb1448ed4778ea43863193916.tar.gz
cuberite-20da685002f9a1dcb1448ed4778ea43863193916.tar.bz2
cuberite-20da685002f9a1dcb1448ed4778ea43863193916.tar.lz
cuberite-20da685002f9a1dcb1448ed4778ea43863193916.tar.xz
cuberite-20da685002f9a1dcb1448ed4778ea43863193916.tar.zst
cuberite-20da685002f9a1dcb1448ed4778ea43863193916.zip
Diffstat (limited to 'MCServer/Plugins')
-rw-r--r--MCServer/Plugins/InfoDump.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/MCServer/Plugins/InfoDump.lua b/MCServer/Plugins/InfoDump.lua
index 8adf4fea2..f140b0d86 100644
--- a/MCServer/Plugins/InfoDump.lua
+++ b/MCServer/Plugins/InfoDump.lua
@@ -186,7 +186,7 @@ local function WriteCommandDetailedHelpForum(a_CmdString, a_DetailedHelp, f)
f:write("The following parameter combinations are recognized:\n");
for idx, combination in ipairs(a_DetailedHelp) do
- f:write("[color=blue]", a_CmdString, "[/color] [color=green]", combination.Params, "[/color] - ", combination.Help);
+ f:write("[color=blue]", a_CmdString, "[/color] [color=green]", combination.Params, "[/color] - ", ForumizeString(combination.Help));
if (combination.Permission ~= nil) then
f:write(" (Requires permission '[color=red]", combination.Permission, "[/color]')");
end
@@ -205,17 +205,17 @@ local function WriteCommandsCategoryForum(a_Category, f)
if (CategoryName == "") then
CategoryName = "General";
end
- f:write("\n[size=Large]", a_Category.DisplayName or CategoryName, "[/size]\n");
+ f:write("\n[size=Large]", ForumizeString(a_Category.DisplayName or CategoryName), "[/size]\n");
-- Write description:
if (a_Category.Description ~= "") then
- f:write(a_Category.Description, "\n");
+ f:write(ForumizeString(a_Category.Description), "\n");
end
-- Write commands:
f:write("\n[list]");
for idx2, cmd in ipairs(a_Category.Commands) do
- f:write("\n[b]", cmd.CommandString, "[/b] - ", (cmd.Info.HelpString or "UNDOCUMENTED"), "\n");
+ f:write("\n[b]", cmd.CommandString, "[/b] - ", ForumizeString(cmd.Info.HelpString or "UNDOCUMENTED"), "\n");
if (cmd.Info.Permission ~= nil) then
f:write("Permission required: [color=red]", cmd.Info.Permission, "[/color]\n");
end
@@ -288,7 +288,7 @@ local function DumpPluginInfoForum(a_PluginFolder, a_PluginInfo)
end
-- Write the description:
- f:write(a_PluginInfo.Description);
+ f:write(ForumizeString(a_PluginInfo.Description), "\n");
DumpAdditionalInfoForum(a_PluginInfo, f);
DumpCommandsForum(a_PluginInfo, f);