🔘 add payment collection to collection bin gui

Took 3 minutes
This commit is contained in:
Kiran Hart 2023-03-03 13:14:00 -05:00
parent 74b9df8e92
commit 234e84b76d
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3
2 changed files with 11 additions and 2 deletions

View File

@ -26,12 +26,10 @@ import ca.tweetzy.auctionhouse.managers.SoundManager;
import ca.tweetzy.auctionhouse.settings.Settings; import ca.tweetzy.auctionhouse.settings.Settings;
import ca.tweetzy.core.utils.PlayerUtils; import ca.tweetzy.core.utils.PlayerUtils;
import ca.tweetzy.core.utils.TextUtils; import ca.tweetzy.core.utils.TextUtils;
import ca.tweetzy.core.utils.items.TItemBuilder;
import org.bukkit.event.inventory.ClickType; import org.bukkit.event.inventory.ClickType;
import java.util.Comparator; import java.util.Comparator;
import java.util.List; import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
@ -84,6 +82,11 @@ public class GUIExpiredItems extends AbstractPlaceholderGui {
SoundManager.getInstance().playSound(this.auctionPlayer.getPlayer(), Settings.SOUNDS_NAVIGATE_GUI_PAGES.getString()); SoundManager.getInstance().playSound(this.auctionPlayer.getPlayer(), Settings.SOUNDS_NAVIGATE_GUI_PAGES.getString());
}); });
if (Settings.STORE_PAYMENTS_FOR_MANUAL_COLLECTION.getBoolean())
setButton(5, 2, ConfigurationItemHelper.createConfigurationItem(Settings.GUI_EXPIRED_AUCTIONS_PAYMENTS_ITEM.getString(), Settings.GUI_EXPIRED_AUCTIONS_PAYMENTS_NAME.getString(), Settings.GUI_EXPIRED_AUCTIONS_PAYMENTS_LORE.getStringList(), null), e -> {
e.manager.showGUI(e.player, new GUIPaymentCollection(this.auctionPlayer));
});
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 -> { 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 -> {

View File

@ -665,6 +665,12 @@ public class Settings {
"&7Click here to claim all of your expired auctions" "&7Click here to claim all of your expired auctions"
)); ));
public static final ConfigSetting GUI_EXPIRED_AUCTIONS_PAYMENTS_ITEM = new ConfigSetting(config, "gui.expired auctions.collect payments.item", "GOLD_INGOT");
public static final ConfigSetting GUI_EXPIRED_AUCTIONS_PAYMENTS_NAME = new ConfigSetting(config, "gui.expired auctions.collect payments.name", "&e&lCollect Payments");
public static final ConfigSetting GUI_EXPIRED_AUCTIONS_PAYMENTS_LORE = new ConfigSetting(config, "gui.expired auctions.collect payments.lore", Collections.singletonList(
"&7Click here to view your payments"
));
/* =============================== /* ===============================
* PAYMENT COLLECTION GUI * PAYMENT COLLECTION GUI
* ===============================*/ * ===============================*/