diff --git a/src/main/java/net/Indyuce/mmocore/MMOCore.java b/src/main/java/net/Indyuce/mmocore/MMOCore.java index 94ac8aa3..c0e04929 100644 --- a/src/main/java/net/Indyuce/mmocore/MMOCore.java +++ b/src/main/java/net/Indyuce/mmocore/MMOCore.java @@ -368,6 +368,9 @@ public class MMOCore extends JavaPlugin { for (Guild guild : dataProvider.getGuildManager().getAll()) dataProvider.getGuildManager().save(guild); + if(dataProvider instanceof MySQLDataProvider) + ((MySQLDataProvider) dataProvider).close(); + mineManager.resetRemainingBlocks(); lootChests.getActive().forEach(chest -> chest.unregister(false));