Permalink
Browse files

Clear after saving, save before clearing.

  • Loading branch information...
1 parent 1fb28ee commit fa645b5e0070a1c892512cfb37939013b5fb9a91 @gmcferrin gmcferrin committed Apr 2, 2013
@@ -23,6 +23,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
switch (args.length) {
case 0:
sender.sendMessage(LocaleLoader.getString("Commands.mmoupdate.Start"));
+ UserManager.saveAll();
UserManager.clearAll();
convertToMySQL();
@@ -166,11 +166,12 @@ public void onEnable() {
@Override
public void onDisable() {
try {
- reloadDisableHelper(); // Prevent Berserk from getting "stuck"
- UserManager.saveAll(); // Make sure to save player information if the server shuts down
- PartyManager.saveParties();
- placeStore.saveAll(); // Save our metadata
- placeStore.cleanUp(); // Cleanup empty metadata stores
+ reloadDisableHelper(); // Prevent Berserk from getting "stuck"
+ UserManager.saveAll(); // Make sure to save player information if the server shuts down
+ UserManager.clearAll(); // Should always clear after saving
+ PartyManager.saveParties(); // Save our parties
+ placeStore.saveAll(); // Save our metadata
+ placeStore.cleanUp(); // Cleanup empty metadata stores
}
catch (NullPointerException e) {}

0 comments on commit fa645b5

Please sign in to comment.