CLAIM_MS_DELAY used for claim all now

Took 3 minutes
This commit is contained in:
Kiran Hart 2022-05-17 12:08:20 -04:00
parent 5e61d60bcd
commit 698c43aeda
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -70,6 +70,14 @@ public class GUIExpiredItems extends AbstractPlaceholderGui {
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 -> {
if (this.lastClicked == null) {
this.lastClicked = System.currentTimeMillis() + Settings.CLAIM_MS_DELAY.getInt();
} else if (this.lastClicked > System.currentTimeMillis()) {
return;
} else {
this.lastClicked = System.currentTimeMillis() + Settings.CLAIM_MS_DELAY.getInt();
}
for (AuctionedItem auctionItem : data) {
if (e.player.getInventory().firstEmpty() == -1) {
AuctionHouse.getInstance().getLocale().getMessage("general.noroomclaim").sendPrefixedMessage(e.player);