diff --git a/src/main/java/dev/esophose/playerparticles/hook/WorldGuardHook.java b/src/main/java/dev/esophose/playerparticles/hook/WorldGuardHook.java index c165264..ec572f8 100644 --- a/src/main/java/dev/esophose/playerparticles/hook/WorldGuardHook.java +++ b/src/main/java/dev/esophose/playerparticles/hook/WorldGuardHook.java @@ -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; }