mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-03-12 06:29:30 +01:00
Fixed economy issues.
This commit is contained in:
parent
946051c7e7
commit
15f57df5a7
@ -100,12 +100,13 @@ public class ShopPanel extends PanelHandler {
|
||||
}
|
||||
|
||||
|
||||
if (EconomyManager.hasBalance(player, price)) {
|
||||
if (!player.isOp() && !EconomyManager.hasBalance(player, price)) {
|
||||
Message.Boss_Shop_NotEnoughBalance.msg(player, NumberUtils.get().formatDouble(price));
|
||||
return;
|
||||
}
|
||||
|
||||
EconomyManager.withdrawBalance(player, price);
|
||||
if (!player.isOp())
|
||||
EconomyManager.withdrawBalance(player, price);
|
||||
player.getInventory().addItem(spawnItem);
|
||||
Message.Boss_Shop_Purchased.msg(player, spawnItem.getItemMeta().getDisplayName());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user