diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-19 01:00:14 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-19 01:00:14 +0100 |
commit | cdca5a3eac0a15a97d510ee5cb70e0ef0bf53971 (patch) | |
tree | 20ceec18155a50a385815878ed64b803255341b8 /src/Bindings/PluginManager.h | |
parent | fixed bindings generation (diff) | |
parent | Update Contributing.md (diff) | |
download | cuberite-cdca5a3eac0a15a97d510ee5cb70e0ef0bf53971.tar cuberite-cdca5a3eac0a15a97d510ee5cb70e0ef0bf53971.tar.gz cuberite-cdca5a3eac0a15a97d510ee5cb70e0ef0bf53971.tar.bz2 cuberite-cdca5a3eac0a15a97d510ee5cb70e0ef0bf53971.tar.lz cuberite-cdca5a3eac0a15a97d510ee5cb70e0ef0bf53971.tar.xz cuberite-cdca5a3eac0a15a97d510ee5cb70e0ef0bf53971.tar.zst cuberite-cdca5a3eac0a15a97d510ee5cb70e0ef0bf53971.zip |
Diffstat (limited to 'src/Bindings/PluginManager.h')
-rw-r--r-- | src/Bindings/PluginManager.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h index b69f402c0..04d6470c7 100644 --- a/src/Bindings/PluginManager.h +++ b/src/Bindings/PluginManager.h @@ -289,7 +289,12 @@ 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 handled. - bool HandleCommand(cPlayer * a_Player, const AString & a_Command, bool a_ShouldCheckPermissions); + 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); + } } ; // tolua_export |