mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2024-12-28 10:24:15 +00:00
Fix WorldGuard enable check
This commit is contained in:
parent
179c6b58e1
commit
c703f58075
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue