Unregister integratedPlugin after server unloaded

Former-commit-id: 9c9d316ee0a90d5bb1f30465b8032eb3716cb011
This commit is contained in:
Ghost_chu committed 2020-04-08 22:02:20 +08:00
1 parent 73a7994e42
commit bf8083a1ff
1 file changed
+1
@@ -540,6 +540,7 @@ public class QuickShop extends JavaPlugin {
// this.reloadConfig();
Util.debugLog("Calling integrations...");
this.integrationHelper.callIntegrationsLoad(IntegrateStage.onUnloadAfter);
this.integrationHelper.getIntegrations().forEach(integratedPlugin -> this.integrationHelper.unregister(integratedPlugin));
Util.debugLog("All shutdown work is finished.");
}