From 43826d986fcfcd124a8076cd5c40cd7dc4edb022 Mon Sep 17 00:00:00 2001 From: drtshock Date: Thu, 13 Nov 2014 12:52:21 -0600 Subject: [PATCH] Add colors to /f list --- src/main/java/com/massivecraft/factions/cmd/CmdList.java | 2 +- src/main/resources/config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdList.java b/src/main/java/com/massivecraft/factions/cmd/CmdList.java index b1099949..05efa434 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdList.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdList.java @@ -115,7 +115,7 @@ public class CmdList extends FCommand { private List getToolTips(Faction faction) { List lines = new ArrayList(); for (String s : p.getConfig().getStringList("tooltips.list")) { - lines.add(replaceFInfoTags(s, faction)); + lines.add(ChatColor.translateAlternateColorCodes('&',replaceFInfoTags(s, faction))); } return lines; } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 6d8fa378..5f9011a3 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -44,7 +44,7 @@ tooltips: # This shows up when someone does /f list for the top factions. # It will not sure up for factionless of course, just actual factions. - # You can't use color codes here. + # You can use color codes here. list: - "Leader: {leader}" - "Claimed: {chunks}"