diff options
author | Mattes D <github@xoft.cz> | 2015-05-13 18:31:01 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-13 18:31:01 +0200 |
commit | f36b00f4d496cb90c8c77d0e6ae570502f3199ae (patch) | |
tree | 595e661b5c7a251f1769dc9aa3d4bff92588f3a9 /src | |
parent | Merge pull request #2001 from mc-server/BindingsCleanup (diff) | |
download | cuberite-f36b00f4d496cb90c8c77d0e6ae570502f3199ae.tar cuberite-f36b00f4d496cb90c8c77d0e6ae570502f3199ae.tar.gz cuberite-f36b00f4d496cb90c8c77d0e6ae570502f3199ae.tar.bz2 cuberite-f36b00f4d496cb90c8c77d0e6ae570502f3199ae.tar.lz cuberite-f36b00f4d496cb90c8c77d0e6ae570502f3199ae.tar.xz cuberite-f36b00f4d496cb90c8c77d0e6ae570502f3199ae.tar.zst cuberite-f36b00f4d496cb90c8c77d0e6ae570502f3199ae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/PluginManager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp index 15bea22bd..db2493955 100644 --- a/src/Bindings/PluginManager.cpp +++ b/src/Bindings/PluginManager.cpp @@ -1445,6 +1445,13 @@ cPluginManager::CommandResult cPluginManager::HandleCommand(cPlayer & a_Player, if (cmd == m_Commands.end()) { // Command not found + // If it started with a slash, ask the plugins if they still want to handle it: + if (!a_Command.empty() && (a_Command[0] == '/')) + { + CommandResult Result = crUnknownCommand; + CallHookExecuteCommand(&a_Player, Split, a_Command, Result); + return Result; + } return crUnknownCommand; } |