diff options
author | madmaxoft <github@xoft.cz> | 2013-11-22 20:11:24 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-22 20:11:24 +0100 |
commit | 63753c5e8405837931510b8da648dc75d4970fe1 (patch) | |
tree | 58e495519d269f4e6d7aff94294101a5911465cc /MCServer/Plugins/Debuggers/Debuggers.lua | |
parent | APIDump: Fixed cRoot's furnace query API. (diff) | |
download | cuberite-63753c5e8405837931510b8da648dc75d4970fe1.tar cuberite-63753c5e8405837931510b8da648dc75d4970fe1.tar.gz cuberite-63753c5e8405837931510b8da648dc75d4970fe1.tar.bz2 cuberite-63753c5e8405837931510b8da648dc75d4970fe1.tar.lz cuberite-63753c5e8405837931510b8da648dc75d4970fe1.tar.xz cuberite-63753c5e8405837931510b8da648dc75d4970fe1.tar.zst cuberite-63753c5e8405837931510b8da648dc75d4970fe1.zip |
Diffstat (limited to 'MCServer/Plugins/Debuggers/Debuggers.lua')
-rw-r--r-- | MCServer/Plugins/Debuggers/Debuggers.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua index 682a54676..c9a610f71 100644 --- a/MCServer/Plugins/Debuggers/Debuggers.lua +++ b/MCServer/Plugins/Debuggers/Debuggers.lua @@ -51,6 +51,8 @@ function Initialize(Plugin) PM:BindCommand("/fr", "debuggers", HandleFurnaceRecipe, "- Shows the furnace recipe for the currently held item"); PM:BindCommand("/ff", "debuggers", HandleFurnaceFuel, "- Shows how long the currently held item would burn in a furnace"); + Plugin:AddWebTab("Debuggers", HandleRequest_Debuggers); + -- Enable the following line for BlockArea / Generator interface testing: -- PluginManager:AddHook(Plugin, cPluginManager.HOOK_CHUNK_GENERATED); @@ -943,3 +945,12 @@ end + +function HandleRequest_Debuggers(a_Request) + local FolderContents = cFile:GetFolderContents("./"); + return "<p>The following objects have been returned by cFile:GetFolderContents():<ul><li>" .. table.concat(FolderContents, "</li><li>") .. "</li></ul></p>"; +end + + + + |