Update WorldGuard integration (#457)
This commit is contained in:
1 parent
904c304666
commit
435613d720
2 files changed
+2
-12
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user