mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-12-23 01:21:47 +00:00
Creator of an admin shop shouldn't need enough money to let players sell
This commit is contained in:
parent
8def855a43
commit
479bf49286
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user