mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-01-08 12:57:35 +01:00
run bid event async in main auction gui
Took 20 seconds
This commit is contained in:
parent
89c3a6001a
commit
70c1cbd682
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user