A few small optimizations

This commit is contained in:
Luck
2016-10-24 18:48:39 +01:00
Unverified
parent 9894e45516
commit a9b6493091
5 changed files with 59 additions and 52 deletions
@@ -71,11 +71,11 @@ public class WorldCalculator extends ContextCalculator<Player> implements Listen
private String getWorld(Player player) {
UUID internal = plugin.getUuidCache().getUUID(player.getUniqueId());
if (!worldCache.containsKey(internal)) {
String world = worldCache.get(internal);
if (world == null) {
return null;
}
String world = worldCache.get(internal);
return plugin.getConfiguration().getWorldRewrites().getOrDefault(world, world);
}