mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-01-24 15:31:19 +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 {
|
} else {
|
||||||
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_PURCHASE_CONTROLS_BID_OFF.getStringList()));
|
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"))) {
|
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"
|
"&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");
|
), "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
|
* AUCTION SOUNDS
|
||||||
* ===============================*/
|
* ===============================*/
|
||||||
|
Loading…
Reference in New Issue
Block a user