add {page}

This commit is contained in:
Ryder Belserion 2024-10-12 17:20:29 -04:00
parent a74d063392
commit d643267220
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -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();
}
}

View File

@ -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.'