Add colors to /f list
This commit is contained in:
parent
64e234144e
commit
43826d986f
@ -115,7 +115,7 @@ public class CmdList extends FCommand {
|
|||||||
private List<String> getToolTips(Faction faction) {
|
private List<String> getToolTips(Faction faction) {
|
||||||
List<String> lines = new ArrayList<String>();
|
List<String> lines = new ArrayList<String>();
|
||||||
for (String s : p.getConfig().getStringList("tooltips.list")) {
|
for (String s : p.getConfig().getStringList("tooltips.list")) {
|
||||||
lines.add(replaceFInfoTags(s, faction));
|
lines.add(ChatColor.translateAlternateColorCodes('&',replaceFInfoTags(s, faction)));
|
||||||
}
|
}
|
||||||
return lines;
|
return lines;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ tooltips:
|
|||||||
|
|
||||||
# This shows up when someone does /f list for the top factions.
|
# This shows up when someone does /f list for the top factions.
|
||||||
# It will not sure up for factionless of course, just actual 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:
|
list:
|
||||||
- "Leader: {leader}"
|
- "Leader: {leader}"
|
||||||
- "Claimed: {chunks}"
|
- "Claimed: {chunks}"
|
||||||
|
Loading…
Reference in New Issue
Block a user