added lore option for quantity purchases

Took 2 minutes
This commit is contained in:
Kiran Hart 2022-07-11 17:06:13 -04:00
parent 7eb02646f0
commit a53adb4d70
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3
2 changed files with 7 additions and 0 deletions

View File

@ -162,6 +162,9 @@ public class AuctionedItem {
}
} else {
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_PURCHASE_CONTROLS_BID_OFF.getStringList()));
if (this.isAllowPartialBuy()) {
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_PURCHASE_CONTROLS_PARTIAL_BUY.getStringList()));
}
}
if (NBTEditor.contains(itemStack, "AuctionBundleItem") || (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_11) && itemStack.getType().name().contains("SHULKER_BOX"))) {

View File

@ -963,6 +963,10 @@ public class Settings {
"&eLeft-Click&f: &bBuy Now"
), "This will be appended at the end of the lore", "If the auction item is not using a bid, this will show");
public static final ConfigSetting AUCTION_STACK_PURCHASE_CONTROLS_PARTIAL_BUY = new ConfigSetting(config, "auction stack.controls.partial buy", Collections.singletonList(
"&eShift Left-Click&f: &bBuy Quantity"
), "This will be appended at the end of the lore", "If the auction item allows partial buys, this will be added");
/* ===============================
* AUCTION SOUNDS
* ===============================*/