diff --git a/src/main/java/ca/tweetzy/auctionhouse/guis/sell/GUISellPlaceItem.java b/src/main/java/ca/tweetzy/auctionhouse/guis/sell/GUISellPlaceItem.java index 28b2caa..5693fec 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/sell/GUISellPlaceItem.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/sell/GUISellPlaceItem.java @@ -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()) {