From 435613d720d0ddd5bd59e505acfb83a47ea12347 Mon Sep 17 00:00:00 2001 From: 112madgamer Date: Thu, 31 Jan 2019 16:51:52 +1100 Subject: [PATCH] Update WorldGuard integration (#457) --- pom.xml | 12 +----------- .../GriefPrevention/WorldGuardWrapper.java | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 45b7910..5324dc4 100644 --- a/pom.xml +++ b/pom.xml @@ -63,7 +63,7 @@ com.sk89q.worldguard worldguard-legacy - 7.0.0-20181117.063337-9 + 7.0.0-SNAPSHOT provided @@ -83,16 +83,6 @@ bstats-bukkit - - - com.sk89q.worldedit - worldedit-core - 7.0.0-20181118.055910-28 - - - com.sk89q.worldguard - worldguard-core - 7.0.0-20181117.063337-9 diff --git a/src/main/java/me/ryanhamshire/GriefPrevention/WorldGuardWrapper.java b/src/main/java/me/ryanhamshire/GriefPrevention/WorldGuardWrapper.java index b4decd5..4f97f54 100644 --- a/src/main/java/me/ryanhamshire/GriefPrevention/WorldGuardWrapper.java +++ b/src/main/java/me/ryanhamshire/GriefPrevention/WorldGuardWrapper.java @@ -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;