diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/command/SimpleCommandMap.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/command/SimpleCommandMap.java b/src/main/java/org/bukkit/command/SimpleCommandMap.java index 777996df..d7765622 100644 --- a/src/main/java/org/bukkit/command/SimpleCommandMap.java +++ b/src/main/java/org/bukkit/command/SimpleCommandMap.java @@ -69,6 +69,11 @@ public final class SimpleCommandMap implements CommandMap { */ public boolean dispatch(CommandSender sender, String commandLine) { String[] args = commandLine.split(" "); + + if (args.length == 0) { + return false; + } + String sentCommandLabel = args[0].toLowerCase(); args = Arrays_copyOfRange(args, 1, args.length); |