🔄️ call bid event from custom amount w/o confirm synchronously

Took 7 minutes
This commit is contained in:
Kiran Hart 2023-08-08 18:07:33 -04:00
parent 56cef59c37
commit 20fe5f7798
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -156,7 +156,7 @@ public class GUIBid extends AbstractPlaceholderGui {
OfflinePlayer owner = Bukkit.getOfflinePlayer(auctionItem.getOwner());
AuctionBidEvent auctionBidEvent = new AuctionBidEvent(e.player, auctionItem, newBiddingAmount);
Bukkit.getServer().getPluginManager().callEvent(auctionBidEvent);
Bukkit.getServer().getScheduler().runTask(AuctionHouse.getInstance(), () -> Bukkit.getServer().getPluginManager().callEvent(auctionBidEvent));
if (auctionBidEvent.isCancelled()) return true;
if (Settings.BIDDING_TAKES_MONEY.getBoolean()) {