mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-01-21 15:01:19 +01:00
🪧 #54 starting bid error message if higher than buyout instead of divide by 2 update.
Took 3 minutes
This commit is contained in:
parent
cacb02c25e
commit
cdca7755de
@ -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())
|
||||
|
@ -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%");
|
||||
|
Loading…
Reference in New Issue
Block a user