summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-06-28 21:55:21 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-06-28 21:55:21 +0200
commit085cb4256ed9dd343ab4049b6f1e3d4ef53855e8 (patch)
tree424c7ee81c250c401d8e45590351a094f2fb9851
parent(Force)ExecuteCommand returns the CommandResult enums (diff)
downloadcuberite-085cb4256ed9dd343ab4049b6f1e3d4ef53855e8.tar
cuberite-085cb4256ed9dd343ab4049b6f1e3d4ef53855e8.tar.gz
cuberite-085cb4256ed9dd343ab4049b6f1e3d4ef53855e8.tar.bz2
cuberite-085cb4256ed9dd343ab4049b6f1e3d4ef53855e8.tar.lz
cuberite-085cb4256ed9dd343ab4049b6f1e3d4ef53855e8.tar.xz
cuberite-085cb4256ed9dd343ab4049b6f1e3d4ef53855e8.tar.zst
cuberite-085cb4256ed9dd343ab4049b6f1e3d4ef53855e8.zip
-rw-r--r--src/Bindings/PluginManager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h
index e2bd9cd94..545f41107 100644
--- a/src/Bindings/PluginManager.h
+++ b/src/Bindings/PluginManager.h
@@ -253,10 +253,10 @@ public: // tolua_export
/** Returns the permission needed for the specified command; empty string if command not found */
AString GetCommandPermission(const AString & a_Command); // tolua_export
- /** Executes the command, as if it was requested by a_Player. Checks permissions first. Returns true if executed. */
+ /** Executes the command, as if it was requested by a_Player. Checks permissions first. Returns crExecuted if executed. */
CommandResult ExecuteCommand(cPlayer * a_Player, const AString & a_Command); // tolua_export
- /** Executes the command, as if it was requested by a_Player. Permisssions are not checked. Returns true if executed (false if not found) */
+ /** Executes the command, as if it was requested by a_Player. Permisssions are not checked. Returns crExecuted if executed. */
CommandResult ForceExecuteCommand(cPlayer * a_Player, const AString & a_Command); // tolua_export
/** Removes all console command bindings that the specified plugin has made */
@@ -330,7 +330,7 @@ private:
/** Adds the plugin into the internal list of plugins and initializes it. If initialization fails, the plugin is removed again. */
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. */
+ /** Tries to match a_Command to the internal table of commands, if a match is found, the corresponding plugin is called. Returns crExecuted if the command is executed. */
cPluginManager::CommandResult HandleCommand(cPlayer * a_Player, const AString & a_Command, bool a_ShouldCheckPermissions);
} ; // tolua_export