Update WorldGuardWrapper dependency (#219)

This commit is contained in:
Louis Mau 2018-10-22 07:29:50 -07:00 committed by Eric B
parent fc27480d37
commit e6637b546e
2 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@
<dependency> <dependency>
<groupId>org.codemc.worldguardwrapper</groupId> <groupId>org.codemc.worldguardwrapper</groupId>
<artifactId>worldguardwrapper</artifactId> <artifactId>worldguardwrapper</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.1-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.palmergames</groupId> <groupId>com.palmergames</groupId>

View File

@ -11,7 +11,7 @@ import me.wiefferink.areashop.regions.GeneralRegion;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
import org.codemc.worldguardwrapper.WorldGuardWrapper; import org.codemc.worldguardwrapper.WorldGuardWrapper;
import org.codemc.worldguardwrapper.implementation.AbstractRegion; import org.codemc.worldguardwrapper.region.WrappedRegion;
public class AreaShopListener implements Listener { public class AreaShopListener implements Listener {
@ -55,7 +55,7 @@ public class AreaShopListener implements Listener {
for (Shop shop : plugin.getShopUtils().getShops()) { for (Shop shop : plugin.getShopUtils().getShops()) {
if (!shop.getLocation().getWorld().getName().equals(generalRegion.getWorldName())) continue; if (!shop.getLocation().getWorld().getName().equals(generalRegion.getWorldName())) continue;
for (AbstractRegion r : WorldGuardWrapper.getInstance().getRegions(shop.getLocation())) { for (WrappedRegion r : WorldGuardWrapper.getInstance().getRegions(shop.getLocation())) {
if (generalRegion.getLowerCaseName().equals(r.getId())) { if (generalRegion.getLowerCaseName().equals(r.getId())) {
plugin.getShopUtils().removeShop(shop, true); plugin.getShopUtils().removeShop(shop, true);
break; break;