mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
Fix PartySaving related NPEs (only save parties if they're enabled) (#4973)
Co-authored-by: Dieu <info@l4b.org>
This commit is contained in:
parent
3361d28887
commit
cdc187b211
@ -384,7 +384,8 @@ public class mcMMO extends JavaPlugin {
|
|||||||
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
|
||||||
UserManager.clearAll();
|
UserManager.clearAll();
|
||||||
Alchemy.finishAllBrews(); // Finish all partially complete AlchemyBrewTasks to prevent vanilla brewing continuation on restart
|
Alchemy.finishAllBrews(); // Finish all partially complete AlchemyBrewTasks to prevent vanilla brewing continuation on restart
|
||||||
getPartyManager().saveParties(); // Save our parties
|
if(partyConfig.isPartyEnabled())
|
||||||
|
getPartyManager().saveParties(); // Save our parties
|
||||||
|
|
||||||
//TODO: Needed?
|
//TODO: Needed?
|
||||||
if(generalConfig.getScoreboardsEnabled())
|
if(generalConfig.getScoreboardsEnabled())
|
||||||
|
@ -20,7 +20,7 @@ public class SaveTimerTask extends CancellableRunnable {
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(mcMMO.p.getPartyConfig().isPartyEnabled())
|
||||||
mcMMO.p.getPartyManager().saveParties();
|
mcMMO.p.getPartyManager().saveParties();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user