mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-02-27 21:31:33 +01:00
2.50.0 Expired Item Claim Adjustment
This commit is contained in:
parent
c901c0d8dd
commit
223435242a
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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();
|
||||
});
|
||||
|
||||
|
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user