Archiviert
1
0
Dieser Commit ist enthalten in:
yoyosource 2022-09-08 19:45:20 +02:00
Ursprung 88724c75e3
Commit 42898b0d4d

Datei anzeigen

@ -88,6 +88,7 @@ public class TypeMappers {
public Collection<String> tabCompletes(CommandSender sender, String[] previousArguments, String s) { public Collection<String> tabCompletes(CommandSender sender, String[] previousArguments, String s) {
if (previousArguments.length == 0) return null; if (previousArguments.length == 0) return null;
ArenaMode arenaMode = ArenaMode.getByChat(previousArguments[previousArguments.length - 1]); ArenaMode arenaMode = ArenaMode.getByChat(previousArguments[previousArguments.length - 1]);
if (arenaMode == null) return null;
List<String> stringList = new ArrayList<>(arenaMode.getMaps()); List<String> stringList = new ArrayList<>(arenaMode.getMaps());
stringList.add("random"); stringList.add("random");
return stringList; return stringList;