Reverted MCommand because 9ce8467224 commit broke it :/

This commit is contained in:
ProSavage 2018-09-02 19:36:37 -05:00
parent 262ca66437
commit ef2ab6b4c6

@ -99,11 +99,7 @@ public abstract class MCommand<T extends MPlugin> {
}
this.args = args;
this.commandChain = commandChain;
if (validCall(this.sender, this.args)) {
// This is always true but anyway
if (!this.isEnabled()) {
return;
}
// Is there a matching sub command?
if (args.size() > 0) {
for (MCommand<?> subCommand : this.subCommands) {
@ -115,9 +111,15 @@ public abstract class MCommand<T extends MPlugin> {
}
}
}
} else {
if (!validCall(this.sender, this.args)) {
return;
}
if (!this.isEnabled()) {
return;
}
perform();
}