Skip to content

Commit

Permalink
Merge pull request #1 from james090500/chestshop-update
Browse files Browse the repository at this point in the history
Updated to latest ShopChest
  • Loading branch information
alex9849 authored May 26, 2020
2 parents fd75ba5 + 12754e7 commit 14e5f2c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@ local.properties
*.iml
.idea
dependency-reduced-pom.xml
desktop.ini
desktop.ini

ArmShopBridge/target
interfaces/target
quickshop4adapter/target
quickshopadapter/target
shopchestadapter/target
shopkeepersadapter/target
ultimateshopsadapter/target
6 changes: 3 additions & 3 deletions shopchestadapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

<repositories>
<repository>
<id>shopchest-repo</id>
<url>https://epicericee.github.io/ShopChest/maven/</url>
<id>codemc-repo</id>
<url>https://repo.codemc.io/repository/maven-public/</url>
</repository>
</repositories>

Expand All @@ -28,7 +28,7 @@
<dependency>
<groupId>de.epiceric</groupId>
<artifactId>ShopChest</artifactId>
<version>1.11.1</version>
<version>1.13-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
import net.alex9849.armshopbridge.interfaces.IShopPluginAdapter;
import org.bukkit.Location;

import java.util.Collection;

public class ShopChestAdapter implements IShopPluginAdapter {
@Override
public void deleteShops(Region region) {
ShopUtils shopUtils = ShopChest.getInstance().getShopUtils();
Shop[] shops = shopUtils.getShops().clone();
Collection<Shop> shops = shopUtils.getShops();

for(Shop shop : shops) {
Location loc = shop.getLocation();
Expand Down

0 comments on commit 14e5f2c

Please sign in to comment.