diff options
author | Mattes D <github@xoft.cz> | 2015-05-02 12:26:19 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-02 12:26:19 +0200 |
commit | 81274b6ee95d463e25c8a5b15dd471ca914f5584 (patch) | |
tree | 5960e86b7c68ff5f15959ede79a558d326740fd0 /MCServer/Plugins | |
parent | Merge pull request #1920 from wiseoldman95/SquashedPathFinder (diff) | |
download | cuberite-81274b6ee95d463e25c8a5b15dd471ca914f5584.tar cuberite-81274b6ee95d463e25c8a5b15dd471ca914f5584.tar.gz cuberite-81274b6ee95d463e25c8a5b15dd471ca914f5584.tar.bz2 cuberite-81274b6ee95d463e25c8a5b15dd471ca914f5584.tar.lz cuberite-81274b6ee95d463e25c8a5b15dd471ca914f5584.tar.xz cuberite-81274b6ee95d463e25c8a5b15dd471ca914f5584.tar.zst cuberite-81274b6ee95d463e25c8a5b15dd471ca914f5584.zip |
Diffstat (limited to 'MCServer/Plugins')
-rw-r--r-- | MCServer/Plugins/APIDump/main_APIDump.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/main_APIDump.lua b/MCServer/Plugins/APIDump/main_APIDump.lua index 239bec69c..013ec7bef 100644 --- a/MCServer/Plugins/APIDump/main_APIDump.lua +++ b/MCServer/Plugins/APIDump/main_APIDump.lua @@ -1643,6 +1643,15 @@ end +local function HandleCmdApiShow(a_Split, a_EntireCmd) + os.execute("API" .. cFile:GetPathSeparator() .. "index.html") + return true, "Launching the browser to show the API docs..." +end + + + + + function Initialize(Plugin) g_Plugin = Plugin; g_PluginFolder = Plugin:GetLocalFolder(); @@ -1651,6 +1660,7 @@ function Initialize(Plugin) -- Bind a console command to dump the API: cPluginManager:BindConsoleCommand("api", HandleCmdApi, "Dumps the Lua API docs into the API/ subfolder") + cPluginManager:BindConsoleCommand("apishow", HandleCmdApiShow, "Runs the default browser to show the API docs") -- Add a WebAdmin tab that has a Dump button g_Plugin:AddWebTab("APIDump", HandleWebAdminDump) |