Allow color codes in Faction Upgrade Title GUI
This commit is contained in:
parent
dfbfbf9981
commit
3ba6e1f376
@ -23,11 +23,12 @@ public class FUpgradeFrame {
|
|||||||
|
|
||||||
private Gui gui;
|
private Gui gui;
|
||||||
|
|
||||||
public FUpgradeFrame(Faction f) {
|
public FUpgradeFrame(Faction f) {
|
||||||
this.gui = new Gui(FactionsPlugin.getInstance(),
|
this.gui = new Gui(FactionsPlugin.getInstance(),
|
||||||
FactionsPlugin.getInstance().getConfig().getInt("fupgrades.MainMenu.Rows", 5),
|
FactionsPlugin.getInstance().getConfig().getInt("fupgrades.MainMenu.Rows", 5),
|
||||||
FactionsPlugin.getInstance().getConfig().getString("fupgrades.MainMenu.Title").replace("{faction}", f.getTag()));
|
ChatColor.translateAlternateColorCodes('&', FactionsPlugin.getInstance().getConfig()
|
||||||
}
|
.getString("fupgrades.MainMenu.Title").replace("{faction}", f.getTag())));
|
||||||
|
}
|
||||||
|
|
||||||
public void buildGUI(FPlayer fplayer) {
|
public void buildGUI(FPlayer fplayer) {
|
||||||
PaginatedPane pane = new PaginatedPane(0, 0, 9, this.gui.getRows());
|
PaginatedPane pane = new PaginatedPane(0, 0, 9, this.gui.getRows());
|
||||||
|
Loading…
Reference in New Issue
Block a user