We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a64c70d commit 7544559Copy full SHA for 7544559
common/src/main/java/revxrsal/commands/core/BaseCommandHelp.java
@@ -49,12 +49,12 @@ public Resolver(BaseCommandHandler handler) {
49
BaseCommandHelp<Object> entries = new BaseCommandHelp<>();
50
CommandCategory parent = helpCommand.getParent();
51
CommandPath parentPath = parent == null ? null : parent.getPath();
52
- for (CommandExecutable c : handler.executables.values()) {
+ handler.executables.values().stream().sorted().forEach(c -> {
53
if (parentPath == null || parentPath.isParentOf(c.getPath())) {
54
if (c != helpCommand)
55
entries.add(writer.generate(c, context.actor()));
56
}
57
- }
+ });
58
return entries;
59
60
0 commit comments