Hotfix SWCommand command sorting
Dieser Commit ist enthalten in:
Ursprung
8c1e4281ca
Commit
c2f03d5279
@ -174,7 +174,7 @@ public abstract class SWCommand {
|
|||||||
if (compare != 0) {
|
if (compare != 0) {
|
||||||
return compare;
|
return compare;
|
||||||
} else {
|
} else {
|
||||||
return Integer.compare(-o1.comparableValue, -o2.comparableValue);
|
return Integer.compare(o1.comparableValue, o2.comparableValue);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
commandHelpList.sort((o1, o2) -> {
|
commandHelpList.sort((o1, o2) -> {
|
||||||
|
@ -52,7 +52,7 @@ class SubCommand {
|
|||||||
this.subCommand = subCommand;
|
this.subCommand = subCommand;
|
||||||
|
|
||||||
Parameter[] parameters = method.getParameters();
|
Parameter[] parameters = method.getParameters();
|
||||||
comparableValue = (parameters[parameters.length - 1].isVarArgs() ? Integer.MAX_VALUE : parameters.length) + subCommand.length;
|
comparableValue = parameters[parameters.length - 1].isVarArgs() ? Integer.MAX_VALUE : parameters.length;
|
||||||
|
|
||||||
guardChecker = SWCommandUtils.getGuardChecker(parameters[0], localGuardChecker);
|
guardChecker = SWCommandUtils.getGuardChecker(parameters[0], localGuardChecker);
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren