From 685f9d445bd7c4675acbe160d271d20292e5bf13 Mon Sep 17 00:00:00 2001 From: Kiran Hart Date: Fri, 25 Nov 2022 14:54:34 -0500 Subject: [PATCH] starting price will be set to min start price or half the buy out if starting price inputed is more than buyout Took 2 minutes --- .../java/ca/tweetzy/auctionhouse/guis/sell/GUISellAuction.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/ca/tweetzy/auctionhouse/guis/sell/GUISellAuction.java b/src/main/java/ca/tweetzy/auctionhouse/guis/sell/GUISellAuction.java index 12de6ef..71df928 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/sell/GUISellAuction.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/sell/GUISellAuction.java @@ -222,8 +222,7 @@ 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) { - AuctionHouse.getInstance().getLocale().getMessage("pricing.basepricetoolow").sendPrefixedMessage(player); - return false; + listingAmount = GUISellAuction.this.binPrice / 2 <= 0 ? Settings.MIN_AUCTION_START_PRICE.getDouble() : GUISellAuction.this.binPrice / 2; } if (listingAmount < Settings.MIN_AUCTION_START_PRICE.getDouble())