From 479bf49286866252fe20eef131c0fd6c986e3260 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 9 Jun 2016 19:39:00 +0200 Subject: [PATCH] Creator of an admin shop shouldn't need enough money to let players sell --- src/de/epiceric/shopchest/event/InteractShop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/epiceric/shopchest/event/InteractShop.java b/src/de/epiceric/shopchest/event/InteractShop.java index 09fe27d..10509ae 100644 --- a/src/de/epiceric/shopchest/event/InteractShop.java +++ b/src/de/epiceric/shopchest/event/InteractShop.java @@ -370,7 +370,7 @@ public class InteractShop implements Listener { } private void sell(Player executor, Shop shop) { - if (econ.getBalance(shop.getVendor()) >= shop.getSellPrice()) { + if (econ.getBalance(shop.getVendor()) >= shop.getSellPrice() || shop.getShopType() == ShopType.ADMIN) { Block block = shop.getLocation().getBlock(); Chest chest = (Chest) block.getState();