🪧 #54 starting bid error message if higher than buyout instead of divide by 2 update.

Took 3 minutes
This commit is contained in:
Kiran Hart 2023-04-18 13:37:22 -04:00
parent cacb02c25e
commit cdca7755de
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3
2 changed files with 5 additions and 1 deletions

View File

@ -221,7 +221,10 @@ public final class GUISellAuction extends AbstractPlaceholderGui {
if (Settings.ALLOW_USAGE_OF_BUY_NOW_SYSTEM.getBoolean() && GUISellAuction.this.allowBuyNow)
if (Settings.BASE_PRICE_MUST_BE_HIGHER_THAN_BID_START.getBoolean() && listingAmount >= GUISellAuction.this.binPrice) {
listingAmount = GUISellAuction.this.binPrice / 2 <= 0 ? Settings.MIN_AUCTION_START_PRICE.getDouble() : GUISellAuction.this.binPrice / 2;
// listingAmount = GUISellAuction.this.binPrice / 2 <= 0 ? Settings.MIN_AUCTION_START_PRICE.getDouble() : GUISellAuction.this.binPrice / 2;
AuctionHouse.getInstance().getLocale().getMessage("pricing.startingpricetoohigh").processPlaceholder("price", AuctionAPI.getInstance().formatNumber(GUISellAuction.this.binPrice)).sendPrefixedMessage(player);
return false;
}
if (listingAmount < Settings.MIN_AUCTION_START_PRICE.getDouble())

View File

@ -98,6 +98,7 @@ public class LocaleSettings {
languageNodes.put("pricing.maxstartingprice", "&cThe maximum starting bid price is &a$%price%");
languageNodes.put("pricing.maxbidincrementprice", "&cThe maximum bid increment is &a$%price%");
languageNodes.put("pricing.basepricetoolow", "&cThe buy now price must be higher than the starting bid.");
languageNodes.put("pricing.startingpricetoohigh", "&cThe starting bid cannot be higher than buyout. &f(&a%price%&f)");
languageNodes.put("pricing.moneyremove", "&c&l- $%price% &7(%player_balance%)");
languageNodes.put("pricing.moneyadd", "&a&l+ $%price% &7(%player_balance%)");
languageNodes.put("pricing.bidmusthigherthanprevious", "&cYour bid must be higher than &4%current_bid%");