diff options
author | Mattes D <github@xoft.cz> | 2015-04-19 14:35:04 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-04-19 14:35:04 +0200 |
commit | 288d2280fa85225613534ae56a59e35465bbefe2 (patch) | |
tree | 85234752e9cd96f21fcdc56d48f3ae651bdc7c1a /src/Bindings/PluginLua.h | |
parent | Split the plugin names and plugin folders to avoid confusing them. (diff) | |
download | cuberite-288d2280fa85225613534ae56a59e35465bbefe2.tar cuberite-288d2280fa85225613534ae56a59e35465bbefe2.tar.gz cuberite-288d2280fa85225613534ae56a59e35465bbefe2.tar.bz2 cuberite-288d2280fa85225613534ae56a59e35465bbefe2.tar.lz cuberite-288d2280fa85225613534ae56a59e35465bbefe2.tar.xz cuberite-288d2280fa85225613534ae56a59e35465bbefe2.tar.zst cuberite-288d2280fa85225613534ae56a59e35465bbefe2.zip |
Diffstat (limited to 'src/Bindings/PluginLua.h')
-rw-r--r-- | src/Bindings/PluginLua.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Bindings/PluginLua.h b/src/Bindings/PluginLua.h index 70d203244..393737b34 100644 --- a/src/Bindings/PluginLua.h +++ b/src/Bindings/PluginLua.h @@ -176,12 +176,13 @@ public: /** Returns true if the plugin contains the function for the specified hook type, using the old-style registration (#121) */ bool CanAddOldStyleHook(int a_HookType); - // cWebPlugin override + // cWebPlugin overrides virtual const AString GetWebTitle(void) const {return GetName(); } + virtual AString HandleWebRequest(const HTTPRequest & a_Request) override; - // cWebPlugin and WebAdmin stuff - virtual AString HandleWebRequest(const HTTPRequest * a_Request) override; - bool AddWebTab(const AString & a_Title, lua_State * a_LuaState, int a_FunctionReference); // >> EXPORTED IN MANUALBINDINGS << + /** Adds a new web tab to webadmin. + Displaying the tab calls the referenced function. */ + bool AddWebTab(const AString & a_Title, lua_State * a_LuaState, int a_FunctionReference); // Exported in ManualBindings.cpp /** Binds the command to call the function specified by a Lua function reference. Simply adds to CommandMap. */ void BindCommand(const AString & a_Command, int a_FnRef); |