From 95f6be8e975a8f34f874fa5897f778d873c07757 Mon Sep 17 00:00:00 2001 From: Kiran Hart Date: Fri, 30 Sep 2022 16:52:25 -0400 Subject: [PATCH] finish self statistic gui (related to #8) Took 33 seconds --- .../guis/statistics/GUIStatisticSelf.java | 4 ++-- .../ca/tweetzy/auctionhouse/settings/Settings.java | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main/java/ca/tweetzy/auctionhouse/guis/statistics/GUIStatisticSelf.java b/src/main/java/ca/tweetzy/auctionhouse/guis/statistics/GUIStatisticSelf.java index fb34497..7dc73d1 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/statistics/GUIStatisticSelf.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/statistics/GUIStatisticSelf.java @@ -35,8 +35,8 @@ public final class GUIStatisticSelf extends AbstractPlaceholderGui { public GUIStatisticSelf(AuctionPlayer player) { super(player); this.auctionPlayer = player; - setTitle(Settings.GUI_STATS_VIEW_SELECT_TITLE.getString()); - setDefaultItem(Settings.GUI_STATS_VIEW_SELECT_BG_ITEM.getMaterial().parseItem()); + setTitle(Settings.GUI_STATS_SELF_TITLE.getString()); + setDefaultItem(Settings.GUI_STATS_SELF_BG_ITEM.getMaterial().parseItem()); setUseLockedCells(true); setAcceptsItems(false); setAllowDrops(false); diff --git a/src/main/java/ca/tweetzy/auctionhouse/settings/Settings.java b/src/main/java/ca/tweetzy/auctionhouse/settings/Settings.java index 4477ceb..5867ec8 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/settings/Settings.java +++ b/src/main/java/ca/tweetzy/auctionhouse/settings/Settings.java @@ -848,6 +848,8 @@ public class Settings { public static final ConfigSetting GUI_STATS_VIEW_SELECT_ITEMS_LEADERBOARD_NAME = new ConfigSetting(config, "gui.stat view select.items.leaderboard.name", "&e&lLeaderboard"); public static final ConfigSetting GUI_STATS_VIEW_SELECT_ITEMS_LEADERBOARD_LORE = new ConfigSetting(config, "gui.stat view select.items.leaderboard.lore", Collections.singletonList("&7Click to view server leaderboard")); + public static final ConfigSetting GUI_STATS_SELF_TITLE = new ConfigSetting(config, "gui.stat view self.items.title", "&7Auction House - &eYour Stats"); + public static final ConfigSetting GUI_STATS_SELF_BG_ITEM = new ConfigSetting(config, "gui.stat view self.bg item", XMaterial.BLACK_STAINED_GLASS_PANE.name()); public static final ConfigSetting GUI_STATS_SELF_ITEMS_CREATED_AUCTION_ITEM = new ConfigSetting(config, "gui.stat view self.items.created auction.item", XMaterial.DIAMOND.name()); public static final ConfigSetting GUI_STATS_SELF_ITEMS_CREATED_AUCTION_NAME = new ConfigSetting(config, "gui.stat view self.items.created auction.name", "&e&lCreated Auctions"); @@ -873,6 +875,18 @@ public class Settings { public static final ConfigSetting GUI_STATS_SELF_ITEMS_MONEY_SPENT_NAME = new ConfigSetting(config, "gui.stat view self.items.money spent.name", "&e&LMoney Spent"); public static final ConfigSetting GUI_STATS_SELF_ITEMS_MONEY_SPENT_LORE = new ConfigSetting(config, "gui.stat view self.items.money spent.lore", Collections.singletonList("&7You spent &c$%money_spent%")); + public static final ConfigSetting GUI_STATS_LEADERBOARD_TITLE = new ConfigSetting(config, "gui.stat view leaderboard.items.title", "&7Auction House - &eStat Leaderboard"); + public static final ConfigSetting GUI_STATS_LEADERBOARD_BG_ITEM = new ConfigSetting(config, "gui.stat view leaderboard.bg item", XMaterial.BLACK_STAINED_GLASS_PANE.name()); + + public static final ConfigSetting GUI_STATS_LEADERBOARD_ITEMS_PLAYER_NAME = new ConfigSetting(config, "gui.stat view leaderboard.items.player.name", "&e&l%player_name%"); + public static final ConfigSetting GUI_STATS_LEADERBOARD_ITEMS_PLAYER_LORE = new ConfigSetting(config, "gui.stat view leaderboard.items.player.lore", Arrays.asList( + "", + "&7Statistic&f: &e%auction_statistic_name%", + "&7Value&f: &e%auction_statistic_value%", + "" + )); + + /* =============================== * EXPIRED ITEMS ADMIN GUI * ===============================*/