mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +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;
|
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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user