Ignore Case when looking up arenas by name.

This makes commands case insensitive, e.g. /ma join. Note that arenas with the same name but different casing are considered the same arena, and one of them will be ignored during config-file parsing.
This commit is contained in:
Hailey Loralyn 2018-04-27 04:35:46 -07:00 committed by Andreas Troelsen
parent 8d9764d8e9
commit aaafba1905
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ public class ArenaMasterImpl implements ArenaMaster
public Arena getArenaWithName(Collection<Arena> arenas, String configName) {
for (Arena arena : arenas)
if (arena.configName().equals(configName))
if (arena.configName().equalsIgnoreCase(configName))
return arena;
return null;
}