diff options
author | madmaxoft <github@xoft.cz> | 2014-02-04 00:16:13 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-02-04 00:16:26 +0100 |
commit | 1bd939c4d4f27b5a04c65446d8119c132a2b64ab (patch) | |
tree | 530e7c678ad6a792d0b0dbfdafe8acd9d7ed575a /MCServer/Plugins/InfoDump.lua | |
parent | Greatly improved TNT propulsion chances (diff) | |
download | cuberite-1bd939c4d4f27b5a04c65446d8119c132a2b64ab.tar cuberite-1bd939c4d4f27b5a04c65446d8119c132a2b64ab.tar.gz cuberite-1bd939c4d4f27b5a04c65446d8119c132a2b64ab.tar.bz2 cuberite-1bd939c4d4f27b5a04c65446d8119c132a2b64ab.tar.lz cuberite-1bd939c4d4f27b5a04c65446d8119c132a2b64ab.tar.xz cuberite-1bd939c4d4f27b5a04c65446d8119c132a2b64ab.tar.zst cuberite-1bd939c4d4f27b5a04c65446d8119c132a2b64ab.zip |
Diffstat (limited to 'MCServer/Plugins/InfoDump.lua')
-rw-r--r-- | MCServer/Plugins/InfoDump.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/InfoDump.lua b/MCServer/Plugins/InfoDump.lua index 6b1da7a77..28a17c214 100644 --- a/MCServer/Plugins/InfoDump.lua +++ b/MCServer/Plugins/InfoDump.lua @@ -149,7 +149,7 @@ local function GetCommandRefForum(a_Command) if (type(a_Command) == "string") then return "[color=blue]" .. a_Command .. "[/color]"; end - return "[color=blue]" .. a_Command.Name .. "[/color] [color=green]" .. a_Command.Params .. "[/color]"; + return "[color=blue]" .. a_Command.Name .. "[/color] [color=green]" .. (a_Command.Params or "") .. "[/color]"; end @@ -169,7 +169,7 @@ local function WriteCommandParameterCombinationsForum(a_CmdString, a_ParameterCo f:write("The following parameter combinations are recognized:\n"); for idx, combination in ipairs(a_ParameterCombinations) do - f:write("[color=blue]", a_CmdString, "[/color] [color=green]", combination.Params, "[/color]"); + f:write("[color=blue]", a_CmdString, "[/color] [color=green]", combination.Params or "", "[/color]"); if (combination.Help ~= nil) then f:write(" - ", ForumizeString(combination.Help)); end |