diff --git a/Changelog.txt b/Changelog.txt index acdb65382..8ab5c3753 100644 --- a/Changelog.txt +++ b/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 diff --git a/pom.xml b/pom.xml index 24f731054..f4b1183a3 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.gmail.nossr50.mcMMO mcMMO - 1.3.03 + 1.3.04-dev mcMMO https://github.com/mcMMO-Dev/mcMMO diff --git a/src/main/java/com/gmail/nossr50/Database.java b/src/main/java/com/gmail/nossr50/Database.java index 6c74e0f7e..aaa0109b4 100644 --- a/src/main/java/com/gmail/nossr50/Database.java +++ b/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()) { diff --git a/src/main/java/com/gmail/nossr50/runnables/RemoveProfileFromMemoryTask.java b/src/main/java/com/gmail/nossr50/runnables/RemoveProfileFromMemoryTask.java index 3beb99f72..35f6f30e2 100644 --- a/src/main/java/com/gmail/nossr50/runnables/RemoveProfileFromMemoryTask.java +++ b/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()); } } }