From 70c1cbd6822e1c9fdecf62435d2e67afd5107e66 Mon Sep 17 00:00:00 2001 From: Kiran Hart Date: Mon, 2 Jan 2023 13:31:27 -0500 Subject: [PATCH] run bid event async in main auction gui Took 20 seconds --- src/main/java/ca/tweetzy/auctionhouse/guis/GUIAuctionHouse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ca/tweetzy/auctionhouse/guis/GUIAuctionHouse.java b/src/main/java/ca/tweetzy/auctionhouse/guis/GUIAuctionHouse.java index 32b9a53..b38a435 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/GUIAuctionHouse.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/GUIAuctionHouse.java @@ -315,7 +315,7 @@ public class GUIAuctionHouse extends AbstractPlaceholderGui { OfflinePlayer oldBidder = Bukkit.getOfflinePlayer(auctionItem.getHighestBidder()); OfflinePlayer owner = Bukkit.getOfflinePlayer(auctionItem.getOwner()); - AuctionBidEvent auctionBidEvent = new AuctionBidEvent(e.player, auctionItem, newBiddingAmount); + AuctionBidEvent auctionBidEvent = new AuctionBidEvent(e.player, auctionItem, newBiddingAmount, true); Bukkit.getServer().getPluginManager().callEvent(auctionBidEvent); if (auctionBidEvent.isCancelled()) return true;