- Fix hex color codes not being parsed in TownyChat spy messages.

This commit is contained in:
Llm Dl committed 2021-05-02 12:01:11 -05:00
1 parent 893dce6d04
commit cb2f8da9c3
2 files changed
+5 -1

No files matched your search

+2 -1
View File
@@ -373,4 +373,5 @@ v0.87:
- Fix UnsupportedOperationException which was possible when leaving a channel.
v0.88:
- Fix players who've just recently joined a town/nation/alliance not being included in the town/nation/alliance chats.
- Fix spam_time settings not working.
- Fix spam_time settings not working.
- Fix hex color codes not being parsed in TownyChat spy messages.
@@ -354,6 +354,9 @@ public class StandardChannel extends Channel {
// Not in a town/nation (doesn't matter which)
}
String format = ChatColor.translateAlternateColorCodes('&', getChannelTag());
if (Towny.is116Plus())
format = HexFormatter.translateHexColors(format);
switch (type) {
case TOWN:
format = format + " [" + town.getName() + "] " + resident.getName();