mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-22 05:25:11 +01:00
🗝️ HIGHEST_BID_PREVIEW stack type
Took 3 minutes
This commit is contained in:
parent
1ff6ecf5e1
commit
f5cdca095d
@ -203,14 +203,18 @@ public class AuctionedItem {
|
||||
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_PURCHASE_CONTROLS_INSPECTION.getStringList()));
|
||||
}
|
||||
} else {
|
||||
if (type == AuctionStackType.LISTING_PREVIEW) {
|
||||
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_LISTING_PREVIEW_ITEM.getStringList()));
|
||||
|
||||
if (type == AuctionStackType.HIGHEST_BID_PREVIEW) {
|
||||
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_HIGHEST_BIDDER_ITEM.getStringList()));
|
||||
} else {
|
||||
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_PURCHASE_CONTROLS_CANCEL_ITEM.getStringList()));
|
||||
if (Settings.ALLOW_PLAYERS_TO_ACCEPT_BID.getBoolean() && this.bidStartingPrice >= 1 || this.bidIncrementPrice >= 1) {
|
||||
if (!this.owner.equals(this.highestBidder)) {
|
||||
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_PURCHASE_CONTROLS_ACCEPT_BID.getStringList()));
|
||||
if (type == AuctionStackType.LISTING_PREVIEW) {
|
||||
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_LISTING_PREVIEW_ITEM.getStringList()));
|
||||
|
||||
} else {
|
||||
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_PURCHASE_CONTROLS_CANCEL_ITEM.getStringList()));
|
||||
if (Settings.ALLOW_PLAYERS_TO_ACCEPT_BID.getBoolean() && this.bidStartingPrice >= 1 || this.bidIncrementPrice >= 1) {
|
||||
if (!this.owner.equals(this.highestBidder)) {
|
||||
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_PURCHASE_CONTROLS_ACCEPT_BID.getStringList()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ public enum AuctionStackType {
|
||||
|
||||
MAIN_AUCTION_HOUSE,
|
||||
ACTIVE_AUCTIONS_LIST,
|
||||
HIGHEST_BID_PREVIEW,
|
||||
LISTING_PREVIEW;
|
||||
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ public class GUIActiveBids extends AbstractPlaceholderGui {
|
||||
|
||||
int slot = 0;
|
||||
for (AuctionedItem item : data) {
|
||||
setItem(slot++, item.getDisplayStack(AuctionStackType.LISTING_PREVIEW));
|
||||
setItem(slot++, item.getDisplayStack(AuctionStackType.HIGHEST_BID_PREVIEW));
|
||||
}
|
||||
}).execute();
|
||||
}
|
||||
|
@ -1274,6 +1274,7 @@ public class Settings {
|
||||
public static final ConfigSetting AUCTION_STACK_PURCHASE_CONTROLS_ACCEPT_BID = new ConfigSetting(config, "auction stack.controls.accept bid", Collections.singletonList("&eRight-Click to accept the current bid"), "This will only show on items within the active listings menu on biddable items.");
|
||||
public static final ConfigSetting AUCTION_STACK_PURCHASE_CONTROLS_CANCEL_ITEM = new ConfigSetting(config, "auction stack.controls.cancel item", Collections.singletonList("&eLeft-Click to cancel this listing"));
|
||||
public static final ConfigSetting AUCTION_STACK_LISTING_PREVIEW_ITEM = new ConfigSetting(config, "auction stack.controls.preview item", Collections.singletonList("&ePreviewing Listing"));
|
||||
public static final ConfigSetting AUCTION_STACK_HIGHEST_BIDDER_ITEM = new ConfigSetting(config, "auction stack.controls.highest bidder", Collections.singletonList("&eCurrently Winning!"));
|
||||
|
||||
public static final ConfigSetting AUCTION_STACK_PURCHASE_CONTROLS_BID_ON = new ConfigSetting(config, "auction stack.controls.using bid", Arrays.asList(
|
||||
"&eLeft-Click&f: &bBid",
|
||||
|
Loading…
Reference in New Issue
Block a user