🗝️ HIGHEST_BID_PREVIEW stack type

Took 3 minutes
This commit is contained in:
Kiran Hart 2023-03-10 00:02:32 -05:00
parent 1ff6ecf5e1
commit f5cdca095d
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3
4 changed files with 14 additions and 8 deletions

View File

@ -202,6 +202,9 @@ public class AuctionedItem {
if (NBTEditor.contains(itemStack, "AuctionBundleItem") || (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_11) && itemStack.getType().name().contains("SHULKER_BOX"))) {
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_PURCHASE_CONTROLS_INSPECTION.getStringList()));
}
} else {
if (type == AuctionStackType.HIGHEST_BID_PREVIEW) {
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_HIGHEST_BIDDER_ITEM.getStringList()));
} else {
if (type == AuctionStackType.LISTING_PREVIEW) {
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_LISTING_PREVIEW_ITEM.getStringList()));
@ -215,6 +218,7 @@ public class AuctionedItem {
}
}
}
}
lore.addAll(TextUtils.formatText(Settings.AUCTION_STACK_PURCHASE_CONTROL_FOOTER.getStringList()));

View File

@ -28,6 +28,7 @@ public enum AuctionStackType {
MAIN_AUCTION_HOUSE,
ACTIVE_AUCTIONS_LIST,
HIGHEST_BID_PREVIEW,
LISTING_PREVIEW;
}

View File

@ -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();
}

View File

@ -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",