forked from Upstream/mmocore
Improved handling of async tasks (autosave, on server shutdown)
This commit is contained in:
parent
1e370864cd
commit
5e466dd8c2
@ -280,9 +280,8 @@ public class MMOCore extends MMOPlugin {
|
|||||||
for (Guild guild : dataProvider.getGuildManager().getAll())
|
for (Guild guild : dataProvider.getGuildManager().getAll())
|
||||||
dataProvider.getGuildManager().save(guild);
|
dataProvider.getGuildManager().save(guild);
|
||||||
|
|
||||||
// Close MySQL data provider (memory leaks)
|
// Close player data manager
|
||||||
playerDataManager.saveAll(false);
|
playerDataManager.close();
|
||||||
playerDataManager.getDataHandler().close();
|
|
||||||
|
|
||||||
// Reset active blocks
|
// Reset active blocks
|
||||||
mineManager.resetRemainingBlocks();
|
mineManager.resetRemainingBlocks();
|
||||||
|
Loading…
Reference in New Issue
Block a user