geforkt von SteamWar/BungeeCore
Simplify arena map typemapper
Dieser Commit ist enthalten in:
Ursprung
6206a80cc1
Commit
eee3dba1de
@ -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
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren