Made a static boolean so plugins hooking in can check if completely enabled.

This commit is contained in:
ProSavage 2019-03-04 15:39:29 -06:00
parent 52c1966fb8
commit 4b7d0889ea

View File

@ -55,6 +55,10 @@ public class SavageFactions extends MPlugin {
// Our single plugin instance. // Our single plugin instance.
// Single 4 life. // Single 4 life.
public static SavageFactions plugin; public static SavageFactions plugin;
// Made for other plugins to hook into so
// they know the plugin has finished enabling...
public static boolean startupFinished = false;
public static Permission perms = null; public static Permission perms = null;
// Persistence related // Persistence related
public static ArrayList<FPlayer> playersFlying = new ArrayList(); public static ArrayList<FPlayer> playersFlying = new ArrayList();
@ -255,6 +259,7 @@ public class SavageFactions extends MPlugin {
this.setupPlaceholderAPI(); this.setupPlaceholderAPI();
this.postEnable(); this.postEnable();
this.loadSuccessful = true; this.loadSuccessful = true;
SavageFactions.startupFinished = true;
} }
public SkriptAddon getSkriptAddon() { public SkriptAddon getSkriptAddon() {