Fix WorldGuard enable check

This commit is contained in:
Esophose 2020-05-13 01:37:01 -06:00
parent 179c6b58e1
commit c703f58075

View file

@ -19,8 +19,11 @@ public class WorldGuardHook {
public static boolean enabled() {
if (enabled != null)
return enabled;
enabled = Bukkit.getPluginManager().getPlugin("WorldGuard") != null;
worldGuardWrapper = WorldGuardWrapper.getInstance();
if (enabled)
worldGuardWrapper = WorldGuardWrapper.getInstance();
return enabled;
}