summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-06-18 12:13:01 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-06-18 12:13:01 +0200
commite0a9f37d909e9d82ccac88dae910ce21a7fdba6f (patch)
tree46bd321321e2cfc9f6a130dfa414e1c4ddce1fda /src/Bindings/PluginManager.cpp
parentAdded crBlocked and crNoPermission (diff)
downloadcuberite-e0a9f37d909e9d82ccac88dae910ce21a7fdba6f.tar
cuberite-e0a9f37d909e9d82ccac88dae910ce21a7fdba6f.tar.gz
cuberite-e0a9f37d909e9d82ccac88dae910ce21a7fdba6f.tar.bz2
cuberite-e0a9f37d909e9d82ccac88dae910ce21a7fdba6f.tar.lz
cuberite-e0a9f37d909e9d82ccac88dae910ce21a7fdba6f.tar.xz
cuberite-e0a9f37d909e9d82ccac88dae910ce21a7fdba6f.tar.zst
cuberite-e0a9f37d909e9d82ccac88dae910ce21a7fdba6f.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index c317ae362..2cd514211 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -1553,18 +1553,18 @@ AString cPluginManager::GetCommandPermission(const AString & a_Command)
-bool cPluginManager::ExecuteCommand(cPlayer * a_Player, const AString & a_Command)
+cPluginManager::CommandResult cPluginManager::ExecuteCommand(cPlayer * a_Player, const AString & a_Command)
{
- return (HandleCommand(a_Player, a_Command, true) == crExecuted);
+ return HandleCommand(a_Player, a_Command, true);
}
-bool cPluginManager::ForceExecuteCommand(cPlayer * a_Player, const AString & a_Command)
+cPluginManager::CommandResult cPluginManager::ForceExecuteCommand(cPlayer * a_Player, const AString & a_Command)
{
- return (HandleCommand(a_Player, a_Command, false) == crExecuted);
+ return HandleCommand(a_Player, a_Command, false);
}