Merge pull request #645 from ItsMonkeyyy/1.6.x

Commands are no longer CaSe-SeNsAtIvE which was a very annoying "issu…
This commit is contained in:
Trent Hensler 2016-04-06 17:11:00 -07:00
commit d111831da8
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ public abstract class MCommand<T extends MPlugin> {
// Is there a matching sub command?
if (args.size() > 0) {
for (MCommand<?> subCommand : this.subCommands) {
if (subCommand.aliases.contains(args.get(0))) {
if (subCommand.aliases.contains(args.get(0).toLowerCase())) {
args.remove(0);
commandChain.add(this);
subCommand.execute(sender, args, commandChain);