127128129130131132133134135136137
return; } if (player.getInventory().countId(item.id) < 1) { return; } if (!shop.shouldStock(item.id)) { return; } if (!shop.canHold(item.id, item.amount)) { player.getActionSender().sendMessage( "The shop is currently full!");