From 3ba6e1f37671bbf4fe46d521f98c1612dcb54b75 Mon Sep 17 00:00:00 2001 From: MSWS Date: Sun, 23 Feb 2020 22:31:50 -0800 Subject: [PATCH] Allow color codes in Faction Upgrade Title GUI --- .../factions/zcore/fupgrades/FUpgradeFrame.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/fupgrades/FUpgradeFrame.java b/src/main/java/com/massivecraft/factions/zcore/fupgrades/FUpgradeFrame.java index 73c96ee6..06df9eef 100644 --- a/src/main/java/com/massivecraft/factions/zcore/fupgrades/FUpgradeFrame.java +++ b/src/main/java/com/massivecraft/factions/zcore/fupgrades/FUpgradeFrame.java @@ -23,11 +23,12 @@ public class FUpgradeFrame { private Gui gui; - public FUpgradeFrame(Faction f) { - this.gui = new Gui(FactionsPlugin.getInstance(), - FactionsPlugin.getInstance().getConfig().getInt("fupgrades.MainMenu.Rows", 5), - FactionsPlugin.getInstance().getConfig().getString("fupgrades.MainMenu.Title").replace("{faction}", f.getTag())); - } + public FUpgradeFrame(Faction f) { + this.gui = new Gui(FactionsPlugin.getInstance(), + FactionsPlugin.getInstance().getConfig().getInt("fupgrades.MainMenu.Rows", 5), + ChatColor.translateAlternateColorCodes('&', FactionsPlugin.getInstance().getConfig() + .getString("fupgrades.MainMenu.Title").replace("{faction}", f.getTag()))); + } public void buildGUI(FPlayer fplayer) { PaginatedPane pane = new PaginatedPane(0, 0, 9, this.gui.getRows());