mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-22 18:32:24 +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) {
|
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();
|
Block block = shop.getLocation().getBlock();
|
||||||
Chest chest = (Chest) block.getState();
|
Chest chest = (Chest) block.getState();
|
||||||
|
Loading…
Reference in New Issue
Block a user