Commands should not be case-sensitive.

This commit is contained in:
EvilSeph 2011-02-06 21:56:38 -05:00
parent 93d15e6228
commit 0731a0a00c

View File

@ -67,7 +67,7 @@ public final class SimpleCommandMap implements CommandMap {
*/ */
public boolean dispatch(CommandSender sender, String commandLine) { public boolean dispatch(CommandSender sender, String commandLine) {
String[] args = commandLine.split(" "); String[] args = commandLine.split(" ");
String sentCommandLabel = args[0]; String sentCommandLabel = args[0].toLowerCase();
args = Arrays.copyOfRange(args, 1, args.length); args = Arrays.copyOfRange(args, 1, args.length);