From eee3dba1de096b960efc1465c882214e43b237f9 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 9 Sep 2022 16:35:05 +0200 Subject: [PATCH] Simplify arena map typemapper --- src/de/steamwar/bungeecore/commands/TypeMappers.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/TypeMappers.java b/src/de/steamwar/bungeecore/commands/TypeMappers.java index 97c510b..3539a0d 100644 --- a/src/de/steamwar/bungeecore/commands/TypeMappers.java +++ b/src/de/steamwar/bungeecore/commands/TypeMappers.java @@ -79,8 +79,7 @@ public class TypeMappers { 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]); - return arenaMode.convertToRealMapName(s); + return ArenaMode.getByChat(previousArguments[previousArguments.length - 1]).convertToRealMapName(s); } @Override