Top level commands are case insensitive. Thus sub commands should be as well.
This commit is contained in:
parent
722ce6b2a7
commit
3f3016c27e
@ -227,7 +227,9 @@ public class MCommand
|
|||||||
{
|
{
|
||||||
for (MCommand subCommand: this.getSubCommands())
|
for (MCommand subCommand: this.getSubCommands())
|
||||||
{
|
{
|
||||||
if (subCommand.getAliases().contains(args.get(0)))
|
for (String alias : subCommand.getAliases())
|
||||||
|
{
|
||||||
|
if (args.get(0).equalsIgnoreCase(alias))
|
||||||
{
|
{
|
||||||
args.remove(0);
|
args.remove(0);
|
||||||
commandChain.add(this);
|
commandChain.add(this);
|
||||||
@ -236,6 +238,7 @@ public class MCommand
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! validCall(this.sender, this.getArgs())) return;
|
if ( ! validCall(this.sender, this.getArgs())) return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user