SteamWar/BauSystem2.0
Archiviert
12
0

hotfix flag autocomplete
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
D4rkr34lm 2024-04-28 15:05:50 +02:00
Ursprung c815cd52fb
Commit 00dcb10451

Datei anzeigen

@ -268,7 +268,7 @@ public class TraceCommand extends SWCommand {
@Override
public Collection<String> tabCompletes(CommandSender sender, PreviousArguments previousArguments, String s) {
return ViewFlag.flags.stream()
.flatMap(viewFlag -> Stream.concat(Stream.of("--" + viewFlag.name),
.flatMap(viewFlag -> Stream.concat(Stream.of("-" + viewFlag.name),
Arrays.stream(viewFlag.aliases).map(name -> "-" + name)))
.collect(Collectors.toList());
}