2.50.0 Expired Item Claim Adjustment

This commit is contained in:
Kiran Hart 2022-01-10 14:12:25 -05:00
parent c901c0d8dd
commit 223435242a
3 changed files with 9 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ca.tweetzy</groupId>
<artifactId>auctionhouse</artifactId>
<version>2.49.0</version>
<version>2.50.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -68,10 +68,17 @@ public class GUIExpiredItems extends Gui {
setButton(5, 1, ConfigurationItemHelper.createConfigurationItem(Settings.GUI_EXPIRED_AUCTIONS_ITEM.getString(), Settings.GUI_EXPIRED_AUCTIONS_NAME.getString(), Settings.GUI_EXPIRED_AUCTIONS_LORE.getStringList(), null), e -> {
for (AuctionedItem auctionItem : data) {
if (e.player.getInventory().firstEmpty() == -1) {
AuctionHouse.getInstance().getLocale().getMessage("general.noroomclaim").sendPrefixedMessage(e.player);
break;
}
PlayerUtils.giveItem(e.player, auctionItem.getItem());
AuctionHouse.getInstance().getAuctionItemManager().sendToGarbage(auctionItem);
}
draw();
});

View File

@ -31,6 +31,7 @@ public class LocaleSettings {
languageNodes.put("general.blocked", "&cSorry, you are not allowed to sell &e%item%");
languageNodes.put("general.sellinglimit", "&cYou cannot sell more items, please remove/sell current active items");
languageNodes.put("general.noroom", "&cPlease clear room in your inventory to purchase that item.");
languageNodes.put("general.noroomclaim", "&cYou do not have enough space in your inventory");
languageNodes.put("general.buynowdisabledonitem", "&cBuy now is disabled on this item.");
languageNodes.put("general.endedallauctions", "&cYou force ended all active auctions");
languageNodes.put("general.relisteditems", "&aYou relisted all expired items!");