Call forEach on values instead of SetMultimap
This commit is contained in:
parent
0ed6747e4b
commit
86e8c3a9e6
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ public class CommandServerUtils extends BaseCommand {
|
|||
.filter(c -> !ALIASES.contains(c.getCommandName().toLowerCase()))
|
||||
.forEach(rootCommand -> {
|
||||
builder.add(rootCommand.getCommandName(), "", rootCommand.getDescription());
|
||||
rootCommand.getSubCommands().forEach((str, cmd) -> {
|
||||
rootCommand.getSubCommands().values().forEach(cmd -> {
|
||||
if (cmd.getPrefSubCommand().isEmpty()) return;
|
||||
builder.add(rootCommand.getCommandName(), " " + cmd.getPrefSubCommand(), cmd.getHelpText());
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue