mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-01-08 12:57:35 +01:00
added lore option for quantity purchases
Took 2 minutes
This commit is contained in:
parent
7eb02646f0
commit
a53adb4d70
@ -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"))) {
|
||||
|
@ -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
|
||||
* ===============================*/
|
||||
|
Loading…
Reference in New Issue
Block a user