Bug fixs and config improvements !
v4.0.1.5Fixed With enable-sell-inventory: true, the amount given to /ah sell was ignored and the whole stack held in hand was listed. The amount is now applied when confirming, capped by what the player actually holds Fixed With purchased-item.give-item: true and player-inventory-must-have-free-space: false, a purchase that did not fit in the inventory was dropped on the ground. The whole lot now goes to "purchased items" (as in V3) and the new purchase-inventory-full message is sent. With player-inventory-must-have-free-space: true the purchase is still blocked, and an inventory that fills up between the click and the delivery now also sends the lot to "purchased items" instead of dropping it Fixed The /ah sell cooldown was consumed even when nothing was sold (sell inventory closed, sale refused). It now starts only once the sale is completed. Other commands keep their current cooldown behaviour Fixed A message set to "" in messages.yml still sent a line containing only the prefix. It is now really disabled Fixed The sell tax messages (tax-sell-applied, tax-reduced, tax-exempt) were sent before the listing was saved, even when the sale then failed and the tax was refunded. They are now sent after the listing is published Added %tax% and %percentage% in the item-sold message, so the tax can be shown in a single message by disabling tax-sell-applied Added open-when-empty option on ZAUCTIONHOUSE_EXPIRED_INVENTORY, ZAUCTIONHOUSE_PURCHASED_INVENTORY and ZAUCTIONHOUSE_SELLING_INVENTORY: the button opens the inventory even when the list is empty. The default auction.yml uses it on the else buttons Added economy option on ZAUCTIONHOUSE_SELL_CONFIRM to always sell with a given economy: one button per economy lists the item in a single click (regression from V3). The same option on ZAUCTIONHOUSE_SELL_ECONOMY selects that economy instead of cycling, with a new %selected% placeholder Added SELL_ECONOMY can be set with /ah admin cache set Added PlaceholderAPI placeholders for the sale in progress: %zauctionhouse_sell_price%, %zauctionhouse_sell_price_formatted%, %zauctionhouse_sell_economy%, %zauctionhouse_sell_economy_name%, %zauctionhouse_sell_amount% API AuctionSellService#openSellCommandInventory(Player, BigDecimal, AuctionEconomy, int), CommandManager#applyCooldown(Player, VCommand) and VCommand#setDeferredCooldown(boolean) Updated Sarah to version 1.26, added database-configuration.max-lifetime