summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-06-17 14:55:15 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-06-17 14:55:15 +0200
commit15ae4ce23371ec6bc1b1f61f4dd7c4ffbd1adf64 (patch)
treee81febb8fa1e1df725bae544c4089bd8d8bc3f0e /src/Bindings/PluginManager.h
parentFixed possible confusion. (diff)
downloadcuberite-15ae4ce23371ec6bc1b1f61f4dd7c4ffbd1adf64.tar
cuberite-15ae4ce23371ec6bc1b1f61f4dd7c4ffbd1adf64.tar.gz
cuberite-15ae4ce23371ec6bc1b1f61f4dd7c4ffbd1adf64.tar.bz2
cuberite-15ae4ce23371ec6bc1b1f61f4dd7c4ffbd1adf64.tar.lz
cuberite-15ae4ce23371ec6bc1b1f61f4dd7c4ffbd1adf64.tar.xz
cuberite-15ae4ce23371ec6bc1b1f61f4dd7c4ffbd1adf64.tar.zst
cuberite-15ae4ce23371ec6bc1b1f61f4dd7c4ffbd1adf64.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginManager.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h
index 0b0498280..049e70b49 100644
--- a/src/Bindings/PluginManager.h
+++ b/src/Bindings/PluginManager.h
@@ -58,6 +58,13 @@ public: // tolua_export
// Called each tick
virtual void Tick(float a_Dt);
+ enum CommandResult
+ {
+ crExecuted,
+ crUnknownCommand,
+ crError,
+ } ;
+
// tolua_begin
enum PluginHook
{
@@ -322,12 +329,7 @@ private:
bool AddPlugin(cPlugin * a_Plugin);
/** Tries to match a_Command to the internal table of commands, if a match is found, the corresponding plugin is called. Returns true if the command is executed. */
- bool HandleCommand(cPlayer * a_Player, const AString & a_Command, bool a_ShouldCheckPermissions, bool & a_WasCommandForbidden);
- bool HandleCommand(cPlayer * a_Player, const AString & a_Command, bool a_ShouldCheckPermissions)
- {
- bool DummyBoolean = false;
- return HandleCommand(a_Player, a_Command, a_ShouldCheckPermissions, DummyBoolean);
- }
+ cPluginManager::CommandResult HandleCommand(cPlayer * a_Player, const AString & a_Command, bool a_ShouldCheckPermissions);
} ; // tolua_export