mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Only get the mcMMOPlayer once.
This commit is contained in:
parent
736359056f
commit
584a225d6e
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user