Don't try to ever pull the mcMMOPlayer here.

Fixes #1466
This commit is contained in:
GJ 2013-09-16 12:12:31 -04:00
parent 1ec55c2d7e
commit e0592b3f62

View File

@ -182,12 +182,11 @@ public final class Misc {
}
public static void profileCleanup(String playerName) {
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(playerName);
Player player = mcMMOPlayer.getPlayer();
UserManager.remove(playerName);
if (player.isOnline()) {
Player player = mcMMO.p.getServer().getPlayerExact(playerName);
if (player != null) {
UserManager.addUser(player);
}
}