Dieser Commit ist enthalten in:
Ursprung
0296716a4e
Commit
a66372e5f7
@ -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);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren