mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-16 20:41:56 +01:00
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:
parent
8d9764d8e9
commit
aaafba1905
@ -225,7 +225,7 @@ public class ArenaMasterImpl implements ArenaMaster
|
|||||||
|
|
||||||
public Arena getArenaWithName(Collection<Arena> arenas, String configName) {
|
public Arena getArenaWithName(Collection<Arena> arenas, String configName) {
|
||||||
for (Arena arena : arenas)
|
for (Arena arena : arenas)
|
||||||
if (arena.configName().equals(configName))
|
if (arena.configName().equalsIgnoreCase(configName))
|
||||||
return arena;
|
return arena;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user