Dieser Commit ist enthalten in:
Ursprung
0296716a4e
Commit
a66372e5f7
@ -69,17 +69,7 @@ public class TypeMappers {
|
||||
|
||||
@Override
|
||||
public Collection<String> tabCompletes(CommandSender sender, String[] previousArguments, String s) {
|
||||
if (!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);
|
||||
return ArenaMode.getAllChatNames(historic);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren