From 8fe18be79bfda2a94cffff21d7b624720c905d8a Mon Sep 17 00:00:00 2001 From: riking Date: Wed, 3 Jul 2013 21:12:23 -0700 Subject: [PATCH] Move that PlayerProfile up another level! --- .../com/gmail/nossr50/datatypes/player/McMMOPlayer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java b/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java index d3b5b9920..3cc005cfc 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java @@ -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); /*