From 584a225d6ea6ea4a57cba50602f78f59de999179 Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 24 Jul 2013 09:37:45 -0400 Subject: [PATCH] Only get the mcMMOPlayer once. --- .../java/com/gmail/nossr50/listeners/PlayerListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 54018406f..15a8f64e1 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -260,11 +260,12 @@ public class PlayerListener implements Listener { return; } - UserManager.getPlayer(player).resetAbilityMode(); + McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player); + mcMMOPlayer.resetAbilityMode(); /* GARBAGE COLLECTION */ BleedTimerTask.bleedOut(player); // Bleed it out - UserManager.getPlayer(player).getProfile().save(); + mcMMOPlayer.getProfile().save(); UserManager.remove(player.getName()); }