SteamWar/BungeeCore
Archiviert
13
2

Undo TypeMappers
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-09-24 11:27:25 +02:00
Ursprung 0296716a4e
Commit a66372e5f7

Datei anzeigen

@ -69,17 +69,7 @@ public class TypeMappers {
@Override @Override
public Collection<String> tabCompletes(CommandSender sender, String[] previousArguments, String s) { public Collection<String> tabCompletes(CommandSender sender, String[] previousArguments, String s) {
if (!historic) { return ArenaMode.getAllChatNames(historic);
List<String> toReturn = ArenaMode.getAllChatNames(false).stream()
.map(String::toLowerCase)
.filter(s1 -> s1.startsWith(s.toLowerCase()))
.collect(Collectors.toList());
if (toReturn.isEmpty()) {
return ArenaMode.getAllChatNames(true);
}
return toReturn;
}
return ArenaMode.getAllChatNames(true);
} }
}; };
} }