}
double pricePerStack = event.getPrice() / event.getStock().length;
for (ItemStack item : event.getStock()) {
Transaction transaction = new Transaction();
transaction.setAmount(item.getAmount());
transaction.setItemID(item.getTypeId());
transaction.setItemDurability(item.getDurability());
transaction.setPrice((float) pricePerStack);
transaction.setShopOwner(NameManager.getUsername(event.getOwner().getUniqueId()));
transaction.setShopUser(NameManager.getUsername(event.getClient().getUniqueId()));
transaction.setSec(System.currentTimeMillis() / 1000);
transaction.setBuy(event.getTransactionType() == BUY);
Queue.addToQueue(transaction);
}
}