Archiviert
1
0

Simplify arena map typemapper

Dieser Commit ist enthalten in:
yoyosource 2022-09-09 16:35:05 +02:00
Ursprung 6206a80cc1
Commit eee3dba1de

Datei anzeigen

@ -79,8 +79,7 @@ public class TypeMappers {
public String map(CommandSender commandSender, String[] previousArguments, String s) { public String map(CommandSender commandSender, String[] previousArguments, String s) {
if (previousArguments.length == 0) return null; if (previousArguments.length == 0) return null;
if (s.equalsIgnoreCase("random")) return "random"; if (s.equalsIgnoreCase("random")) return "random";
ArenaMode arenaMode = ArenaMode.getByChat(previousArguments[previousArguments.length - 1]); return ArenaMode.getByChat(previousArguments[previousArguments.length - 1]).convertToRealMapName(s);
return arenaMode.convertToRealMapName(s);
} }
@Override @Override