diff options
author | Mattes D <github@xoft.cz> | 2015-05-13 21:33:26 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-13 21:33:26 +0200 |
commit | 06506da0b19aeeaf0c6b1b774285ac4f257cbeaa (patch) | |
tree | 75a5343d88e0ba4f6885fe7263a0e13bd280f24c /MCServer/Plugins/APIDump/Hooks/OnExecuteCommand.lua | |
parent | Merge pull request #2008 from mc-server/InfoDumpLinks (diff) | |
parent | Fixed chat message manipulation by plugins. (diff) | |
download | cuberite-06506da0b19aeeaf0c6b1b774285ac4f257cbeaa.tar cuberite-06506da0b19aeeaf0c6b1b774285ac4f257cbeaa.tar.gz cuberite-06506da0b19aeeaf0c6b1b774285ac4f257cbeaa.tar.bz2 cuberite-06506da0b19aeeaf0c6b1b774285ac4f257cbeaa.tar.lz cuberite-06506da0b19aeeaf0c6b1b774285ac4f257cbeaa.tar.xz cuberite-06506da0b19aeeaf0c6b1b774285ac4f257cbeaa.tar.zst cuberite-06506da0b19aeeaf0c6b1b774285ac4f257cbeaa.zip |
Diffstat (limited to 'MCServer/Plugins/APIDump/Hooks/OnExecuteCommand.lua')
-rw-r--r-- | MCServer/Plugins/APIDump/Hooks/OnExecuteCommand.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnExecuteCommand.lua b/MCServer/Plugins/APIDump/Hooks/OnExecuteCommand.lua index 79b7bb055..db7eb97d1 100644 --- a/MCServer/Plugins/APIDump/Hooks/OnExecuteCommand.lua +++ b/MCServer/Plugins/APIDump/Hooks/OnExecuteCommand.lua @@ -16,10 +16,9 @@ return If the command is in-game, the first parameter to the hook function is the {{cPlayer|player}} who's executing the command. If the command comes from the server console, the first parameter is nil.</p> <p> - The server calls this hook even for unregistered (unknown) console commands. However, it doesn't call - the hook for unregistered in-game commands, simply because there's no way to distinguish between a - command and a chat message. If a plugin needs to intercept unknown in-game commands, it should use the - {{OnChat|HOOK_CHAT}} hook. + The server calls this hook even for unregistered (unknown) console commands. It also calls the hook + for unknown in-game commands, as long as they begin with a slash ('/'). If a plugin needs to intercept + in-game chat messages not beginning with a slash, it should use the {{OnChat|HOOK_CHAT}} hook. ]], Params = { |