summaryrefslogtreecommitdiffstats
path: root/source/Plugin.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-15 14:00:59 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-15 14:00:59 +0100
commit34b3c13404c466c8f64d198dce914a1e3fa094c2 (patch)
tree351964785344dd92f2f0043fab89878b1abf5b6b /source/Plugin.h
parentFixed one-hit-blocks not being broken server-side (diff)
downloadcuberite-34b3c13404c466c8f64d198dce914a1e3fa094c2.tar
cuberite-34b3c13404c466c8f64d198dce914a1e3fa094c2.tar.gz
cuberite-34b3c13404c466c8f64d198dce914a1e3fa094c2.tar.bz2
cuberite-34b3c13404c466c8f64d198dce914a1e3fa094c2.tar.lz
cuberite-34b3c13404c466c8f64d198dce914a1e3fa094c2.tar.xz
cuberite-34b3c13404c466c8f64d198dce914a1e3fa094c2.tar.zst
cuberite-34b3c13404c466c8f64d198dce914a1e3fa094c2.zip
Diffstat (limited to 'source/Plugin.h')
-rw-r--r--source/Plugin.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/Plugin.h b/source/Plugin.h
index e787c3239..de7113c22 100644
--- a/source/Plugin.h
+++ b/source/Plugin.h
@@ -85,12 +85,21 @@ public:
virtual bool OnWeatherChanged (cWorld & a_World);
virtual bool OnWeatherChanging (cWorld & a_World, eWeather & a_NewWeather);
- /// Handles the command split into a_Split, issued by player a_Player. Command permissions have already been checked.
+ /** Handles the command split into a_Split, issued by player a_Player.
+ Command permissions have already been checked.
+ Returns true if command handled successfully
+ */
virtual bool HandleCommand(const AStringVector & a_Split, cPlayer * a_Player);
+ /// Handles the console command split into a_Split. Returns true if command handled successfully.
+ virtual bool HandleConsoleCommand(const AStringVector & a_Split);
+
/// All bound commands are to be removed, do any language-dependent cleanup here
virtual void ClearCommands(void) {} ;
+ /// All bound console commands are to be removed, do any language-dependent cleanup here
+ virtual void ClearConsoleCommands(void) {} ;
+
/** Called from cPluginManager::AddHook() to check if the hook can be added.
Plugin API providers may check if the plugin is written correctly (has the hook handler function)
Returns true if the hook can be added (handler exists)