Fix commands being case sensitive.

This commit is contained in:
Jesse Boyd
2015-11-28 22:56:12 +11:00
parent d1ac355e58
commit 1ee13ff96c
5 changed files with 3 additions and 7 deletions

View File

@ -333,7 +333,7 @@ public class MainCommand extends CommandManager<PlotPlayer> {
System.arraycopy(parts, 2, args, 0, args.length);
}
Command<PlotPlayer> cmd;
if (label != null) {
if (label != null) {
cmd = getInstance().commands.get(label.toLowerCase());
} else {
cmd = null;