Make sure world names are lowercase'd

This commit is contained in:
Luck
2017-04-08 17:00:36 +01:00
Unverified
parent 9de44d2605
commit 82e759d708
4 changed files with 5 additions and 4 deletions
@@ -45,7 +45,7 @@ public class WorldCalculator implements ContextCalculator<Player> {
world = plugin.getConfiguration().get(ConfigKeys.WORLD_REWRITES).getOrDefault(world, world);
if (world != null) {
accumulator.add(Maps.immutableEntry(WORLD_KEY, world));
accumulator.add(Maps.immutableEntry(WORLD_KEY, world.toLowerCase()));
}
return accumulator;