summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-14 21:57:23 +0200
committermadmaxoft <github@xoft.cz>2013-10-14 21:57:23 +0200
commite4bb796c6b03374ef5fcf02acee710900cacb5bb (patch)
tree805523f9fdd18752e7b92a2af174e0095fd0769a
parentAPIDump: Documented HOOK_LOGIN. (diff)
downloadcuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar
cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar.gz
cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar.bz2
cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar.lz
cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar.xz
cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar.zst
cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/main.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 8c07144f2..6ae4a6b0f 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -180,7 +180,12 @@ function DumpAPIHtml()
-- Extract hook constants:
for name, obj in pairs(cPluginManager) do
- if (type(obj) == "number") and (name:match("HOOK_.*")) then
+ if (
+ (type(obj) == "number") and
+ name:match("HOOK_.*") and
+ (name ~= "HOOK_MAX") and
+ (name ~= "HOOK_NUM_HOOKS")
+ ) then
table.insert(Hooks, { Name = name });
end
end