mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-21 20:56:45 +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.clearAll();
|
||||
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?
|
||||
if(generalConfig.getScoreboardsEnabled())
|
||||
|
@ -20,7 +20,7 @@ public class SaveTimerTask extends CancellableRunnable {
|
||||
count++;
|
||||
}
|
||||
|
||||
|
||||
mcMMO.p.getPartyManager().saveParties();
|
||||
if(mcMMO.p.getPartyConfig().isPartyEnabled())
|
||||
mcMMO.p.getPartyManager().saveParties();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user