Sfoglia il codice sorgente

Added few forgotten things

bm01 13 anni fa
parent
commit
e9c3583fd8

+ 2 - 1
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() {

+ 2 - 4
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);