mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-02-01 23:23:20 +01:00
add {page}
This commit is contained in:
parent
a74d063392
commit
d643267220
@ -17,7 +17,7 @@ public class GuiManager {
|
|||||||
public static void openShop(Player player, ShopType shopType, Category category, int page) {
|
public static void openShop(Player player, ShopType shopType, Category category, int page) {
|
||||||
FileConfiguration config = Files.config.getConfiguration();
|
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) {
|
public static void openCategories(Player player, ShopType shopType) {
|
||||||
@ -35,7 +35,7 @@ public class GuiManager {
|
|||||||
public static void openPlayersExpiredList(Player player, int page) {
|
public static void openPlayersExpiredList(Player player, int page) {
|
||||||
FileConfiguration config = Files.config.getConfiguration();
|
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) {
|
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) {
|
public static void openViewer(Player player, String other, int page) {
|
||||||
FileConfiguration config = Files.config.getConfiguration();
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
Settings:
|
Settings:
|
||||||
Prefix: '&7[&4Crazy &bAuctions&7]: ' #Prefix of when you get Crazy Auctions Messages.
|
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.
|
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.
|
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.
|
Bidding-On-Item: '&8You Are Bidding On This Item.' #Name of the Bidding GUI.
|
||||||
Categories: '&8Categories' #Name of the Category GUI.
|
Categories: '&8Categories' #Name of the Category GUI.
|
||||||
@ -134,7 +134,7 @@ Settings:
|
|||||||
Item: 'POISONOUS_POTATO'
|
Item: 'POISONOUS_POTATO'
|
||||||
Toggle: true
|
Toggle: true
|
||||||
Slot: 47
|
Slot: 47
|
||||||
Name: '&6Collect Expired / Canceled Items'
|
Name: '&6Collect Expired / Cancelled Items'
|
||||||
Lore:
|
Lore:
|
||||||
- '&aClick here to view and collect all of the'
|
- '&aClick here to view and collect all of the'
|
||||||
- '&aitems you have canceled or has expired.'
|
- '&aitems you have canceled or has expired.'
|
||||||
|
Loading…
Reference in New Issue
Block a user