mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-01-08 12:57:35 +01:00
add meetsListingRequirements to sell auction / bin guis. Closes #33
Took 2 minutes
This commit is contained in:
parent
5160de0f29
commit
5b775f520e
@ -333,6 +333,8 @@ public final class GUISellAuction extends AbstractPlaceholderGui {
|
||||
}
|
||||
|
||||
private void performAuctionListing(GuiClickEvent click) {
|
||||
if (!AuctionAPI.getInstance().meetsListingRequirements(click.player, this.auctionPlayer.getItemBeingListed())) return;
|
||||
|
||||
AuctionCreator.create(this.auctionPlayer, createListingItem(), (originalListing, listingResult) -> {
|
||||
if (listingResult != ListingResult.SUCCESS) {
|
||||
click.player.closeInventory();
|
||||
|
@ -207,6 +207,8 @@ public final class GUISellBin extends AbstractPlaceholderGui {
|
||||
}
|
||||
|
||||
private void performAuctionListing(GuiClickEvent click) {
|
||||
if (!AuctionAPI.getInstance().meetsListingRequirements(click.player, this.auctionPlayer.getItemBeingListed())) return;
|
||||
|
||||
AuctionCreator.create(this.auctionPlayer, createListingItem(), (originalListing, listingResult) -> {
|
||||
if (listingResult != ListingResult.SUCCESS) {
|
||||
click.player.closeInventory();
|
||||
|
Loading…
Reference in New Issue
Block a user