From bf8083a1ff92b72b783b7cbe294d4daa41abdbc2 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Wed, 8 Apr 2020 22:02:20 +0800 Subject: [PATCH] Unregister integratedPlugin after server unloaded Former-commit-id: 9c9d316ee0a90d5bb1f30465b8032eb3716cb011 --- src/main/java/org/maxgamer/quickshop/QuickShop.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java index 825a29f36..86ebcc9aa 100644 --- a/src/main/java/org/maxgamer/quickshop/QuickShop.java +++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java @@ -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."); }