place item gui now opens the auction sale menu if listing type is auction

Took 12 minutes
This commit is contained in:
Kiran Hart 2022-11-18 09:43:58 -05:00
parent cbe6d43664
commit c9b9ac9158
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -99,8 +99,18 @@ public final class GUISellPlaceItem extends AbstractPlaceholderGui {
this.auctionPlayer.setItemBeingListed(toList);
click.gui.exit();
click.manager.showGUI(click.player, new GUISellBin(this.auctionPlayer, Settings.MIN_AUCTION_PRICE.getDouble(), System.currentTimeMillis() + (1000L * this.auctionPlayer.getAllowedSellTime(AuctionSaleType.USED_BIDDING_SYSTEM)), false));
if (this.listingType == ListingType.BIN)
click.manager.showGUI(click.player, new GUISellBin(this.auctionPlayer, Settings.MIN_AUCTION_PRICE.getDouble(), System.currentTimeMillis() + (1000L * this.auctionPlayer.getAllowedSellTime(AuctionSaleType.WITHOUT_BIDDING_SYSTEM)), false));
else
click.manager.showGUI(click.player, new GUISellAuction(
this.auctionPlayer,
Settings.MIN_AUCTION_PRICE.getDouble(),
Settings.MIN_AUCTION_START_PRICE.getDouble(),
Settings.MIN_AUCTION_INCREMENT_PRICE.getDouble(),
System.currentTimeMillis() + (1000L * this.auctionPlayer.getAllowedSellTime(AuctionSaleType.USED_BIDDING_SYSTEM)),
Settings.ALLOW_USAGE_OF_BUY_NOW_SYSTEM.getBoolean()
));
});
if (Settings.ALLOW_ITEM_BUNDLES.getBoolean()) {