Creator of an admin shop shouldn't need enough money to let players sell

This commit is contained in:
Eric 2016-06-09 19:39:00 +02:00
parent 8def855a43
commit 479bf49286

View File

@ -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();