mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-25 05:55:13 +01:00
CLAIM_MS_DELAY used for claim all now
Took 3 minutes
This commit is contained in:
parent
5e61d60bcd
commit
698c43aeda
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user