mcMMO should no longer lose a few minutes of player data from shutting

down the server
This commit is contained in:
nossr50
2019-06-05 21:11:44 -07:00
parent 4048ecc764
commit 3ce3ac5350
9 changed files with 80 additions and 31 deletions

View File

@@ -318,9 +318,9 @@ public class mcMMO extends JavaPlugin {
@Override
public void onDisable() {
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();
Alchemy.finishAllBrews(); // Finish all partially complete AlchemyBrewTasks to prevent vanilla brewing continuation on restart
PartyManager.saveParties(); // Save our parties
//TODO: Needed?