diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/command/SimpleCommandMap.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/command/SimpleCommandMap.java b/src/main/java/org/bukkit/command/SimpleCommandMap.java index 01452b69..21e1cfa9 100644 --- a/src/main/java/org/bukkit/command/SimpleCommandMap.java +++ b/src/main/java/org/bukkit/command/SimpleCommandMap.java @@ -74,6 +74,12 @@ public final class SimpleCommandMap implements CommandMap { boolean isRegisteredCommand = (target != null); if (isRegisteredCommand) { target.execute(sender, sentCommandLabel, args); + return true; + } + target = knownCommands.get(sentCommandLabel.substring(1)); + isRegisteredCommand = (target != null); + if (isRegisteredCommand) { + target.execute(sender, sentCommandLabel, args); } return isRegisteredCommand; } |