parent
4cb2abefeb
commit
d079fcf379
|
|
@ -26,7 +26,13 @@ class WorldGuardWrapper
|
||||||
public boolean canBuild(Location lesserCorner, Location greaterCorner, Player creatingPlayer)
|
public boolean canBuild(Location lesserCorner, Location greaterCorner, Player creatingPlayer)
|
||||||
{
|
{
|
||||||
World world = lesserCorner.getWorld();
|
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;
|
if(new RegionPermissionModel(this.worldGuard, creatingPlayer).mayIgnoreRegionProtection(world)) return true;
|
||||||
|
|
||||||
RegionManager manager = this.worldGuard.getRegionManager(world);
|
RegionManager manager = this.worldGuard.getRegionManager(world);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user