catch (NumberFormatException e)
{
e.printStackTrace();
return;
}
final ItemAuction auction = _instance.getAuction(auctionId);
if (auction != null)
{
auction.cancelBid(player);
}
else
{
player.sendPacket(Msg.THERE_ARE_NO_FUNDS_PRESENTLY_DUE_TO_YOU);
}
}
else
{
final ItemAuction[] auctions = _instance.getAuctionsByBidder(player.getObjectId());
for (final ItemAuction auction : auctions)
{
auction.cancelBid(player);
}
}
}
else if (params[1].equals("show"))
{
final ItemAuction currentAuction = _instance.getCurrentAuction();
final ItemAuction nextAuction = _instance.getNextAuction();
if (currentAuction == null)
{
player.sendPacket(Msg.IT_IS_NOT_AN_AUCTION_PERIOD);
if (nextAuction != null)
{
player.sendMessage("The next auction will begin on the " + fmt.format(new Date(nextAuction.getStartingTime())) + ".");
}
return;
}
if (!player.getAndSetLastItemAuctionRequest())
{