diff --git a/src/me/ryanhamshire/GriefPrevention/WorldGuardWrapper.java b/src/me/ryanhamshire/GriefPrevention/WorldGuardWrapper.java index eccbf87..aaf8f59 100644 --- a/src/me/ryanhamshire/GriefPrevention/WorldGuardWrapper.java +++ b/src/me/ryanhamshire/GriefPrevention/WorldGuardWrapper.java @@ -26,7 +26,13 @@ class WorldGuardWrapper public boolean canBuild(Location lesserCorner, Location greaterCorner, Player creatingPlayer) { World world = lesserCorner.getWorld(); - + + if (worldGuard == null) + { + GriefPrevention.AddLogEntry("WorldGuard is out of date. Please update or remove WorldGuard."); + return true; + } + if(new RegionPermissionModel(this.worldGuard, creatingPlayer).mayIgnoreRegionProtection(world)) return true; RegionManager manager = this.worldGuard.getRegionManager(world);