Explorar o código

Version is now 1.3.04-dev modified comments/changelog

nossr50 %!s(int64=13) %!d(string=hai) anos
pai
achega
46cdfe992f

+ 3 - 0
Changelog.txt

@@ -7,6 +7,9 @@ Key:
   ! Change
   - Removal
   
+Version 1.3.04-dev
+ ! Changed MySQL to reload all player information on reconnection
+ 
 Version 1.3.03
  + Added Ocelots to Taming XP tables
  + Added ability to summon Ocelots with Call of the Wild

+ 1 - 1
pom.xml

@@ -2,7 +2,7 @@
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.gmail.nossr50.mcMMO</groupId>
     <artifactId>mcMMO</artifactId>
-    <version>1.3.03</version>
+    <version>1.3.04-dev</version>
     <name>mcMMO</name>
     <url>https://github.com/mcMMO-Dev/mcMMO</url>
     <issueManagement>

+ 1 - 2
src/main/java/com/gmail/nossr50/Database.java

@@ -256,9 +256,8 @@ public class Database {
                     if (!isConnected()) {
                         connect();
                         if(isConnected()) {
-                            //Save/Remove all profiles
                             for(PlayerProfile x : Users.players.values()) {
-                                x.save();
+                                x.save(); //Save all profiles
                             }
                             Users.players.clear(); //Clear the profiles
                             for(Player x : Bukkit.getOnlinePlayers()) {

+ 1 - 1
src/main/java/com/gmail/nossr50/runnables/RemoveProfileFromMemoryTask.java

@@ -16,7 +16,7 @@ public class RemoveProfileFromMemoryTask implements Runnable {
 	    //Check if the profile still exists (stuff like MySQL reconnection removes profiles)
 	    if(Users.players.containsKey(player.getName().toLowerCase())) {
     	    Users.getProfile(player.getName()).save(); //We save here so players don't quit/reconnect to cause lag
-    		Users.removeUserByName(player.getName());
+    	    Users.removeUserByName(player.getName());
 	    }
 	}
 }