SteamWar/BauSystem2.0
Archiviert
12
0

Remove deprecated code usage from CommandAPI
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2023-01-15 20:48:09 +01:00
Ursprung 7ac5240289
Commit fa0f80f36f

Datei anzeigen

@ -236,7 +236,7 @@ public class TraceCommand extends SWCommand {
@Override
public List<String> tabCompletes(CommandSender commandSender, PreviousArguments previousArguments, String s) {
Set<ShowModeParameterType> showModeParameterTypeSet = new HashSet<>();
Arrays.stream(previousArguments.mappedArgs).filter(ShowModeType.class::isInstance).map(ShowModeType.class::cast).forEach(showModeType -> {
previousArguments.getAll(ShowModeType.class).forEach(showModeType -> {
showModeParameterTypeSet.addAll(Arrays.asList(showModeType.removedTypes));
});
Arrays.stream(previousArguments.userArgs).map(showModeParameterTypesMap::get).forEach(showModeParameterTypeSet::add);