summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-19 22:51:02 +0100
committermadmaxoft <github@xoft.cz>2014-03-19 22:51:02 +0100
commitd6a72da3821091f23f063942dbafdc3a5c0b34ac (patch)
tree32043fca92317ef38b81371600ad38653c16fc48 /MCServer/Plugins/APIDump
parentAPIDump: Added ZeroBraneStudio API export. (diff)
downloadcuberite-d6a72da3821091f23f063942dbafdc3a5c0b34ac.tar
cuberite-d6a72da3821091f23f063942dbafdc3a5c0b34ac.tar.gz
cuberite-d6a72da3821091f23f063942dbafdc3a5c0b34ac.tar.bz2
cuberite-d6a72da3821091f23f063942dbafdc3a5c0b34ac.tar.lz
cuberite-d6a72da3821091f23f063942dbafdc3a5c0b34ac.tar.xz
cuberite-d6a72da3821091f23f063942dbafdc3a5c0b34ac.tar.zst
cuberite-d6a72da3821091f23f063942dbafdc3a5c0b34ac.zip
Diffstat (limited to 'MCServer/Plugins/APIDump')
-rw-r--r--MCServer/Plugins/APIDump/main_APIDump.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/main_APIDump.lua b/MCServer/Plugins/APIDump/main_APIDump.lua
index 2e1aa445d..7455c3cd2 100644
--- a/MCServer/Plugins/APIDump/main_APIDump.lua
+++ b/MCServer/Plugins/APIDump/main_APIDump.lua
@@ -1541,9 +1541,12 @@ function Initialize(Plugin)
LOG("Initialising " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
+ -- Bind a console command to dump the API:
cPluginManager:BindConsoleCommand("api", HandleCmdApi, "Dumps the Lua API docs into the API/ subfolder")
+
+ -- Add a WebAdmin tab that has a Dump button
g_Plugin:AddWebTab("APIDump", HandleWebAdminDump)
- -- TODO: Add a WebAdmin tab that has a Dump button
+
return true
end