diff --git a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java index 737dea3cf..776a4777b 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java @@ -97,7 +97,7 @@ public class PlayerProfile { lastlogin = ((Long) (System.currentTimeMillis() / 1000)).intValue(); } - public Player getlayer() { + public Player getPlayer() { return player; } @@ -107,6 +107,7 @@ public class PlayerProfile { public void setPlayer(Player player) { this.player = player; + this.playerName = player.getName(); } public boolean loadMySQL() { diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index 7aaa30f0b..932d977c3 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -401,7 +401,7 @@ public class PartyManager { } /** - * Load all party related files. + * Load party file. */ private void loadParties() { File file = new File(partiesFilePath); @@ -432,9 +432,7 @@ public class PartyManager { } /** - * Save all party-related files. - * - * @throws Exception + * Save party file. */ public void saveParties() { File file = new File(partiesFilePath);