Skip to content

Commit

Permalink
shutdown Denizen when Depenizen shuts down to prevent load order errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 30, 2019
1 parent 8b74b74 commit 1533833
Showing 1 changed file with 3 additions and 0 deletions.
@@ -1,5 +1,6 @@
package com.denizenscript.depenizen.bukkit;

import com.denizenscript.denizen.utilities.DenizenAPI;
import com.denizenscript.denizencore.objects.ObjectFetcher;
import com.denizenscript.depenizen.bukkit.bridges.*;
import com.denizenscript.depenizen.bukkit.bungee.BungeeBridge;
Expand Down Expand Up @@ -52,6 +53,8 @@ public void onDisable() {
if (BungeeBridge.instance != null && BungeeBridge.instance.connected) {
BungeeBridge.instance.onShutdown();
}
// To prevent issue with onDisable order, tell Denizen to shutdown NOW (it won't repeat itself).
DenizenAPI.getCurrentInstance().onDisable();
}

public void checkLoadBungeeBridge() {
Expand Down

0 comments on commit 1533833

Please sign in to comment.