Fixed no command found being sent to the command sender for command handlers which return failure (false)

This commit is contained in:
stevenh
2011-05-23 23:59:47 +01:00
parent 127e1adc4c
commit 7a035d60ea
2 changed files with 6 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ public interface CommandMap {
* Looks for the requested command and executes it if found.
*
* @param cmdLine command + arguments. Example: "/test abc 123"
* @return targetFound returns false if no target is found.
* @return targetFound returns false if no target is found, true otherwise.
* @throws CommandException Thrown when the executor for the given command fails with an unhandled exception
*/
public boolean dispatch(CommandSender sender, String cmdLine) throws CommandException;