mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-26 06:05:25 +01:00
🔘 add payment collection to collection bin gui
Took 3 minutes
This commit is contained in:
parent
74b9df8e92
commit
234e84b76d
@ -26,12 +26,10 @@ import ca.tweetzy.auctionhouse.managers.SoundManager;
|
||||
import ca.tweetzy.auctionhouse.settings.Settings;
|
||||
import ca.tweetzy.core.utils.PlayerUtils;
|
||||
import ca.tweetzy.core.utils.TextUtils;
|
||||
import ca.tweetzy.core.utils.items.TItemBuilder;
|
||||
import org.bukkit.event.inventory.ClickType;
|
||||
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
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());
|
||||
});
|
||||
|
||||
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 -> {
|
||||
|
||||
|
@ -665,6 +665,12 @@ public class Settings {
|
||||
"&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
|
||||
* ===============================*/
|
||||
|
Loading…
Reference in New Issue
Block a user