mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 15:45:10 +00:00
Prevent Overbidding on Auctions
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user