mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-25 12:25:20 +01:00
fix one bug with bid menu
This commit is contained in:
parent
2c6c8af68f
commit
e6d22beb42
@ -51,9 +51,7 @@ public class BidMenu extends Holder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final Holder build() {
|
public final Holder build() {
|
||||||
final UUID uuid = this.player.getUniqueId();
|
if (!this.data.contains("active_auctions." + this.auction.getUuid() + "." + this.id)) {
|
||||||
|
|
||||||
if (!this.data.contains("active_auctions." + uuid + "." + this.id)) {
|
|
||||||
GuiManager.openShop(this.player, ShopType.BID, HolderManager.getShopCategory(this.player), 1);
|
GuiManager.openShop(this.player, ShopType.BID, HolderManager.getShopCategory(this.player), 1);
|
||||||
|
|
||||||
this.player.sendMessage(Messages.ITEM_DOESNT_EXIST.getMessage(this.player));
|
this.player.sendMessage(Messages.ITEM_DOESNT_EXIST.getMessage(this.player));
|
||||||
@ -181,7 +179,7 @@ public class BidMenu extends Holder {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.userManager.addActiveAuction(auction.getUuid().toString(), section);
|
this.userManager.addActiveAuction(uuid, section);
|
||||||
|
|
||||||
player.closeInventory();
|
player.closeInventory();
|
||||||
bidMenu.click(player);
|
bidMenu.click(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user