From d643267220fa12cc849f618fad9bb95796b3295e Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Sat, 12 Oct 2024 17:20:29 -0400 Subject: [PATCH] add {page} --- .../java/com/badbones69/crazyauctions/api/GuiManager.java | 6 +++--- paper/src/main/resources/config.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/paper/src/main/java/com/badbones69/crazyauctions/api/GuiManager.java b/paper/src/main/java/com/badbones69/crazyauctions/api/GuiManager.java index 193d004..6a0426a 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/api/GuiManager.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/api/GuiManager.java @@ -17,7 +17,7 @@ public class GuiManager { public static void openShop(Player player, ShopType shopType, Category category, int page) { FileConfiguration config = Files.config.getConfiguration(); - new AuctionsMenu(player, shopType, category, config.getString("Settings.GUIName", "N/A"), 54, page); + new AuctionsMenu(player, shopType, category, config.getString("Settings.GUIName", "&4Crazy &bAuctions&8 #{page}").replaceAll("\\{page}", String.valueOf(page)), 54, page).build(); } public static void openCategories(Player player, ShopType shopType) { @@ -35,7 +35,7 @@ public class GuiManager { public static void openPlayersExpiredList(Player player, int page) { FileConfiguration config = Files.config.getConfiguration(); - new ExpiredMenu(player, config.getString("Settings.Cancelled/Expired-Items") + " #" + page, 54, page).build(); + new ExpiredMenu(player, config.getString("Settings.Cancelled/Expired-Items", "&8Cancelled/Expired Listings #{page}").replaceAll("\\{page}", String.valueOf(page)), 54, page).build(); } public static void openBuying(Player player, String ID) { @@ -53,6 +53,6 @@ public class GuiManager { public static void openViewer(Player player, String other, int page) { FileConfiguration config = Files.config.getConfiguration(); - new AuctionsMenu(player, other, config.getString("Settings.GUIName") + " #" + page, 54, page).build(); + new AuctionsMenu(player, other, config.getString("Settings.GUIName", "&4Crazy &bAuctions&8 #{page}").replaceAll("\\{page}", String.valueOf(page)), 54, page).build(); } } \ No newline at end of file diff --git a/paper/src/main/resources/config.yml b/paper/src/main/resources/config.yml index 15b1137..8f0db93 100644 --- a/paper/src/main/resources/config.yml +++ b/paper/src/main/resources/config.yml @@ -1,8 +1,8 @@ Settings: Prefix: '&7[&4Crazy &bAuctions&7]: ' #Prefix of when you get Crazy Auctions Messages. - GUIName: '&4Crazy &bAuctions&8' #Name of the Main GUI. + GUIName: '&4Crazy &bAuctions&8 #{page}' #Name of the Main GUI. Players-Current-Items: '&8Your Current Listings' #The Name of the Player Current Items GUI. - Cancelled/Expired-Items: '&8Canceled/Expired Listings' #Name of the Cancelled/Expired GUI. + Cancelled/Expired-Items: '&8Cancelled/Expired Listings #{page}' #Name of the Cancelled/Expired GUI. Buying-Item: '&8Purchase Item: Are You Sure?' #Name of the Buying GUI. Bidding-On-Item: '&8You Are Bidding On This Item.' #Name of the Bidding GUI. Categories: '&8Categories' #Name of the Category GUI. @@ -134,7 +134,7 @@ Settings: Item: 'POISONOUS_POTATO' Toggle: true Slot: 47 - Name: '&6Collect Expired / Canceled Items' + Name: '&6Collect Expired / Cancelled Items' Lore: - '&aClick here to view and collect all of the' - '&aitems you have canceled or has expired.'