mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-01-08 12:57:35 +01:00
place item gui now opens the auction sale menu if listing type is auction
Took 12 minutes
This commit is contained in:
parent
cbe6d43664
commit
c9b9ac9158
@ -99,8 +99,18 @@ public final class GUISellPlaceItem extends AbstractPlaceholderGui {
|
|||||||
|
|
||||||
this.auctionPlayer.setItemBeingListed(toList);
|
this.auctionPlayer.setItemBeingListed(toList);
|
||||||
click.gui.exit();
|
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()) {
|
if (Settings.ALLOW_ITEM_BUNDLES.getBoolean()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user