Clear after saving, save before clearing.

This commit is contained in:
GJ 2013-04-02 08:29:38 -04:00
parent 1fb28eeee0
commit fa645b5e00
2 changed files with 7 additions and 5 deletions

View File

@ -23,6 +23,7 @@ public class MmoupdateCommand implements CommandExecutor {
switch (args.length) { switch (args.length) {
case 0: case 0:
sender.sendMessage(LocaleLoader.getString("Commands.mmoupdate.Start")); sender.sendMessage(LocaleLoader.getString("Commands.mmoupdate.Start"));
UserManager.saveAll();
UserManager.clearAll(); UserManager.clearAll();
convertToMySQL(); convertToMySQL();

View File

@ -168,7 +168,8 @@ public class mcMMO extends JavaPlugin {
try { try {
reloadDisableHelper(); // Prevent Berserk from getting "stuck" reloadDisableHelper(); // Prevent Berserk from getting "stuck"
UserManager.saveAll(); // Make sure to save player information if the server shuts down UserManager.saveAll(); // Make sure to save player information if the server shuts down
PartyManager.saveParties(); UserManager.clearAll(); // Should always clear after saving
PartyManager.saveParties(); // Save our parties
placeStore.saveAll(); // Save our metadata placeStore.saveAll(); // Save our metadata
placeStore.cleanUp(); // Cleanup empty metadata stores placeStore.cleanUp(); // Cleanup empty metadata stores
} }