Prevent Overbidding on Auctions

This commit is contained in:
Kam committed 2026-02-23 22:08:12 -05:00
1 parent 0eec52f6d9
commit 5d4d21359f
4 files changed
+16 -2

No files matched your search

@@ -585,6 +585,11 @@ public class AuctionController implements IAuctionHandler {
return "Bid must be at least " + minBid + " " + ConfigMarket.CurrencyName + ".";
}
// Prevent bidding at or above buyout price
if (listing.hasBuyout() && bidAmount >= listing.buyoutPrice) {
return "Your bid meets or exceeds the buyout price. Use Buy Now instead.";
}
// Check currency
PlayerData playerData = PlayerData.get(player);
if (playerData == null) {