Dieser Commit ist enthalten in:
Ursprung
88724c75e3
Commit
42898b0d4d
@ -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;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren