mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 06:28:58 +00:00
- Fix hex color codes not being parsed in TownyChat spy messages.
This commit is contained in:
1 parent
893dce6d04
commit
cb2f8da9c3
2 files changed
+5
-1
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user