Save users asynchronously

This commit is contained in:
riking
2014-06-03 20:52:22 -07:00
committed by TfT_02
parent 6d719988bf
commit 4fb4d6fc0c
10 changed files with 21 additions and 12 deletions

View File

@ -205,6 +205,7 @@ public class mcMMO extends JavaPlugin {
try {
Alchemy.finishAllBrews(); // Finish all partially complete AlchemyBrewTasks to prevent vanilla brewing continuation on restart
UserManager.saveAll(); // Make sure to save player information if the server shuts down
UserManager.clearAll();
PartyManager.saveParties(); // Save our parties
ScoreboardManager.teardownAll();
formulaManager.saveFormula();