Update WorldGuard integration (#457)

This commit is contained in:
112madgamer
2019-01-30 21:51:52 -08:00
committed by RoboMWM
parent 904c304666
commit 435613d720
2 changed files with 2 additions and 12 deletions
@@ -29,7 +29,7 @@ class WorldGuardWrapper
try
{
BukkitPlayer localPlayer = new BukkitPlayer(this.worldGuard, creatingPlayer);
World world = WorldGuard.getInstance().getPlatform().getWorldByName(lesserCorner.getWorld().getName());
World world = WorldGuard.getInstance().getPlatform().getMatcher().getWorldByName(lesserCorner.getWorld().getName());
if(new RegionPermissionModel(localPlayer).mayIgnoreRegionProtection(world)) return true;