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
1 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,10 @@ public class SavageFactions extends MPlugin {
// Our single plugin instance.
// Single 4 life.
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;
// Persistence related
public static ArrayList<FPlayer> playersFlying = new ArrayList();
@ -255,6 +259,7 @@ public class SavageFactions extends MPlugin {
this.setupPlaceholderAPI();
this.postEnable();
this.loadSuccessful = true;
SavageFactions.startupFinished = true;
}
public SkriptAddon getSkriptAddon() {