Move that PlayerProfile up another level!

This commit is contained in:
riking 2013-07-03 21:12:23 -07:00
parent f0dcfb0346
commit 8fe18be79b

View File

@ -89,10 +89,14 @@ public class McMMOPlayer {
private boolean isUsingUnarmed;
public McMMOPlayer(Player player) {
this(player, mcMMO.getDatabaseManager().loadPlayerProfile(player.getName(), true));
}
public McMMOPlayer(Player player, PlayerProfile profile) {
String playerName = player.getName();
this.player = player;
profile = mcMMO.getDatabaseManager().loadPlayerProfile(playerName, true);
this.profile = profile;
party = PartyManager.getPlayerParty(playerName);
/*