From 053c8f706037261fe421eb506fd877fa48f8bb35 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sun, 11 Sep 2022 17:41:00 +0200 Subject: [PATCH] Added a title to the shop management gui --- .../java/com/alttd/playershops/config/ShopTypeConfig.java | 5 +++++ .../java/com/alttd/playershops/gui/ShopManagementGui.java | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/alttd/playershops/config/ShopTypeConfig.java b/src/main/java/com/alttd/playershops/config/ShopTypeConfig.java index 6bba796..3021a40 100644 --- a/src/main/java/com/alttd/playershops/config/ShopTypeConfig.java +++ b/src/main/java/com/alttd/playershops/config/ShopTypeConfig.java @@ -76,4 +76,9 @@ public class ShopTypeConfig { yourShopNoStock = getString("transaction.your-shop-no-stock", yourShopNoStock); } + public static String MANAGE_TITLE = "Shop Manager"; + private void menuTitles() { + MANAGE_TITLE = getString("title.management-gui", MANAGE_TITLE); + } + } diff --git a/src/main/java/com/alttd/playershops/gui/ShopManagementGui.java b/src/main/java/com/alttd/playershops/gui/ShopManagementGui.java index 95a762e..41cf5a7 100644 --- a/src/main/java/com/alttd/playershops/gui/ShopManagementGui.java +++ b/src/main/java/com/alttd/playershops/gui/ShopManagementGui.java @@ -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();