summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-18 23:05:41 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-18 23:05:41 +0100
commitb4ac4a14fa8b1d7d16e8ccbb1913fe0d9d8939e4 (patch)
treee4613784d6bd2c9162d706c3ffd249b10e546dab /src/Bindings/PluginManager.h
parentThe "<>" of a player name is now coloured (diff)
downloadcuberite-b4ac4a14fa8b1d7d16e8ccbb1913fe0d9d8939e4.tar
cuberite-b4ac4a14fa8b1d7d16e8ccbb1913fe0d9d8939e4.tar.gz
cuberite-b4ac4a14fa8b1d7d16e8ccbb1913fe0d9d8939e4.tar.bz2
cuberite-b4ac4a14fa8b1d7d16e8ccbb1913fe0d9d8939e4.tar.lz
cuberite-b4ac4a14fa8b1d7d16e8ccbb1913fe0d9d8939e4.tar.xz
cuberite-b4ac4a14fa8b1d7d16e8ccbb1913fe0d9d8939e4.tar.zst
cuberite-b4ac4a14fa8b1d7d16e8ccbb1913fe0d9d8939e4.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginManager.h7
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