Dieser Commit ist enthalten in:
Ursprung
baef387fdb
Commit
2676f97cfb
@ -1 +1 @@
|
||||
Subproject commit 6e6d34905ac39bd2ed9548729041febadd42da2f
|
||||
Subproject commit 9df92595b2f344585bd3e1639cedc761680b7761
|
@ -77,6 +77,7 @@ public class TypeMappers {
|
||||
return new TypeMapper<String>() {
|
||||
@Override
|
||||
public String map(CommandSender commandSender, String[] previousArguments, String s) {
|
||||
if (previousArguments.length == 0) return null;
|
||||
if (s.equalsIgnoreCase("random")) return "random";
|
||||
ArenaMode arenaMode = ArenaMode.getByChat(previousArguments[previousArguments.length - 1]);
|
||||
if (arenaMode.getMaps().contains(s)) return s;
|
||||
@ -85,6 +86,7 @@ public class TypeMappers {
|
||||
|
||||
@Override
|
||||
public Collection<String> tabCompletes(CommandSender sender, String[] previousArguments, String s) {
|
||||
if (previousArguments.length == 0) return null;
|
||||
ArenaMode arenaMode = ArenaMode.getByChat(previousArguments[previousArguments.length - 1]);
|
||||
List<String> stringList = new ArrayList<>(arenaMode.getMaps());
|
||||
stringList.add("random");
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren