Added a title to the shop management gui

This commit is contained in:
Teriuihi 2022-09-11 17:41:00 +02:00
parent e568eec906
commit 053c8f7060
2 changed files with 7 additions and 1 deletions

View File

@ -76,4 +76,9 @@ 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);
}
}

View File

@ -1,6 +1,7 @@
package com.alttd.playershops.gui;
import com.alttd.playershops.PlayerShops;
import com.alttd.playershops.config.ShopTypeConfig;
import com.alttd.playershops.conversation.ConversationManager;
import com.alttd.playershops.conversation.ConversationType;
import com.alttd.playershops.shop.PlayerShop;
@ -25,7 +26,7 @@ public class ShopManagementGui extends AbstractGui {
public ShopManagementGui(UUID uuid, PlayerShop shop) {
super(uuid);
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage("Config.gui.management-title"));
this.inventory = Bukkit.createInventory(this, INV_SIZE, Util.parseMiniMessage(ShopTypeConfig.MANAGE_TITLE));
this.shop = shop;
initInvContents();
makeMenuBar();