mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-25 05:55:13 +01:00
🔄️ call bid event from custom amount w/o confirm synchronously
Took 7 minutes
This commit is contained in:
parent
56cef59c37
commit
20fe5f7798
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user