Move ShopManagementGui Title to MessageConfig.java
This commit is contained in:
parent
db38b93264
commit
bd2f71d8c5
|
|
@ -69,11 +69,13 @@ public class MessageConfig extends AbstractConfiguration {
|
|||
public static String GUI_LIST_PLAYERS_TITLE = "<green>Player shops <page>/<pages>";
|
||||
public static String GUI_LIST_SHOPS_TITLE = "<green>Players shops by <playername> <page>/<pages>";
|
||||
public static String GUI_LIST_TRANSACTIONS_TITLE = "<green>Shop Transactions <page>/<pages>";
|
||||
public static String GUI_MANAGE_TITLE = "<green>Shop Manager";
|
||||
private static void guiTitles() {
|
||||
GUI_HOME_TITLE = config.getString("gui.home-title", GUI_HOME_TITLE);
|
||||
GUI_LIST_PLAYERS_TITLE = config.getString("gui.list-players-title", GUI_LIST_PLAYERS_TITLE);
|
||||
GUI_LIST_SHOPS_TITLE = config.getString("gui.list-shops-title", GUI_LIST_SHOPS_TITLE);
|
||||
GUI_LIST_TRANSACTIONS_TITLE = config.getString("gui.list-transactions-title", GUI_LIST_TRANSACTIONS_TITLE);
|
||||
GUI_MANAGE_TITLE = config.getString("gui.manage-title", GUI_MANAGE_TITLE);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,9 +76,4 @@ public class ShopTypeConfig {
|
|||
yourShopNoStock = getString("transaction.your-shop-no-stock", yourShopNoStock);
|
||||
}
|
||||
|
||||
public static String MANAGE_TITLE = "<green>Shop Manager</green>";
|
||||
private void menuTitles() {
|
||||
MANAGE_TITLE = getString("title.management-gui", MANAGE_TITLE);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.alttd.playershops.gui;
|
||||
|
||||
import com.alttd.playershops.PlayerShops;
|
||||
import com.alttd.playershops.config.MessageConfig;
|
||||
import com.alttd.playershops.config.ShopTypeConfig;
|
||||
import com.alttd.playershops.conversation.ConversationManager;
|
||||
import com.alttd.playershops.conversation.ConversationType;
|
||||
|
|
@ -26,7 +27,7 @@ public class ShopManagementGui extends AbstractGui {
|
|||
|
||||
public ShopManagementGui(UUID uuid, PlayerShop shop) {
|
||||
super(uuid);
|
||||
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(ShopTypeConfig.MANAGE_TITLE));
|
||||
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(MessageConfig.GUI_MANAGE_TITLE));
|
||||
this.shop = shop;
|
||||
initInvContents();
|
||||
makeMenuBar();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user