Only get the mcMMOPlayer once.

This commit is contained in:
GJ 2013-07-24 09:37:45 -04:00
parent 736359056f
commit 584a225d6e

View File

@ -260,11 +260,12 @@ public class PlayerListener implements Listener {
return; return;
} }
UserManager.getPlayer(player).resetAbilityMode(); McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
mcMMOPlayer.resetAbilityMode();
/* GARBAGE COLLECTION */ /* GARBAGE COLLECTION */
BleedTimerTask.bleedOut(player); // Bleed it out BleedTimerTask.bleedOut(player); // Bleed it out
UserManager.getPlayer(player).getProfile().save(); mcMMOPlayer.getProfile().save();
UserManager.remove(player.getName()); UserManager.remove(player.getName());
} }