mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-22 18:32:24 +00:00
Update WorldGuardWrapper dependency (#219)
This commit is contained in:
parent
fc27480d37
commit
e6637b546e
2
pom.xml
2
pom.xml
@ -116,7 +116,7 @@
|
||||
<dependency>
|
||||
<groupId>org.codemc.worldguardwrapper</groupId>
|
||||
<artifactId>worldguardwrapper</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.palmergames</groupId>
|
||||
|
@ -11,7 +11,7 @@ import me.wiefferink.areashop.regions.GeneralRegion;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.codemc.worldguardwrapper.WorldGuardWrapper;
|
||||
import org.codemc.worldguardwrapper.implementation.AbstractRegion;
|
||||
import org.codemc.worldguardwrapper.region.WrappedRegion;
|
||||
|
||||
public class AreaShopListener implements Listener {
|
||||
|
||||
@ -55,7 +55,7 @@ public class AreaShopListener implements Listener {
|
||||
for (Shop shop : plugin.getShopUtils().getShops()) {
|
||||
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())) {
|
||||
plugin.getShopUtils().removeShop(shop, true);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user