summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main_APIDump.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-10 23:14:25 +0200
committerMattes D <github@xoft.cz>2015-05-10 23:14:25 +0200
commit66945e4847bed70dc4a8d724292753b79d4231a9 (patch)
tree5f3f1a00f704c7def6fc18b98c296e964f218815 /MCServer/Plugins/APIDump/main_APIDump.lua
parentOnExecuteCommand hook can override the command result (crXXX). (diff)
downloadcuberite-66945e4847bed70dc4a8d724292753b79d4231a9.tar
cuberite-66945e4847bed70dc4a8d724292753b79d4231a9.tar.gz
cuberite-66945e4847bed70dc4a8d724292753b79d4231a9.tar.bz2
cuberite-66945e4847bed70dc4a8d724292753b79d4231a9.tar.lz
cuberite-66945e4847bed70dc4a8d724292753b79d4231a9.tar.xz
cuberite-66945e4847bed70dc4a8d724292753b79d4231a9.tar.zst
cuberite-66945e4847bed70dc4a8d724292753b79d4231a9.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/main_APIDump.lua')
-rw-r--r--MCServer/Plugins/APIDump/main_APIDump.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/main_APIDump.lua b/MCServer/Plugins/APIDump/main_APIDump.lua
index 013ec7bef..4ca06b974 100644
--- a/MCServer/Plugins/APIDump/main_APIDump.lua
+++ b/MCServer/Plugins/APIDump/main_APIDump.lua
@@ -285,7 +285,7 @@ local function WriteHtmlHook(a_Hook, a_HookNav)
for _, param in ipairs(a_Hook.Params) do
f:write("<tr><td>", param.Name, "</td><td>", LinkifyString(param.Type, HookName), "</td><td>", LinkifyString(param.Notes, HookName), "</td></tr>\n");
end
- f:write("</table>\n<p>" .. (a_Hook.Returns or "") .. "</p>\n\n");
+ f:write("</table>\n<p>" .. LinkifyString(a_Hook.Returns or "", HookName) .. "</p>\n\n");
f:write([[<hr /><h1>Code examples</h1><h2>Registering the callback</h2>]]);
f:write("<pre class=\"prettyprint lang-lua\">\n");
f:write([[cPluginManager:AddHook(cPluginManager.]] .. a_Hook.Name .. ", My" .. a_Hook.DefaultFnName .. [[);]]);