From 5347cd4e34da86ca5a9dd7a2d87ae758c446403e Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 27 Jun 2014 20:00:02 -0700 Subject: [PATCH] Fixed issue where the use of non-existent subcommands had no response. --- .../worldedit/util/command/SimpleDispatcherCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcherCommand.java b/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcherCommand.java index ec7b1545e..79b30f064 100644 --- a/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcherCommand.java +++ b/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcherCommand.java @@ -41,9 +41,9 @@ public class SimpleDispatcherCommand extends SimpleDispatcher implements Command @Override public void call(CommandContext context) throws CommandException { - if (context.argsLength() >= 1) { - super.call(context.getRemainingString(0), context.getLocals()); - } else { + boolean success = context.argsLength() >= 1 && super.call(context.getRemainingString(0), context.getLocals()) != null; + + if (!success) { Set aliases = getPrimaryAliases(); if (aliases.size() == 0) {