Dieser Commit ist enthalten in:
Ursprung
1fbf43d3d3
Commit
611bc58576
@ -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;
|
comparableValue = (parameters[parameters.length - 1].isVarArgs() ? Integer.MAX_VALUE : parameters.length) + subCommand.length;
|
||||||
|
|
||||||
guardChecker = SWCommandUtils.getGuardChecker(parameters[0], localGuardChecker);
|
guardChecker = SWCommandUtils.getGuardChecker(parameters[0], localGuardChecker);
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren