mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38: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
+4
No files matched your search
@@ -374,3 +374,4 @@ v0.87:
|
|||||||
v0.88:
|
v0.88:
|
||||||
- Fix players who've just recently joined a town/nation/alliance not being included in the town/nation/alliance chats.
|
- 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)
|
// Not in a town/nation (doesn't matter which)
|
||||||
}
|
}
|
||||||
String format = ChatColor.translateAlternateColorCodes('&', getChannelTag());
|
String format = ChatColor.translateAlternateColorCodes('&', getChannelTag());
|
||||||
|
if (Towny.is116Plus())
|
||||||
|
format = HexFormatter.translateHexColors(format);
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case TOWN:
|
case TOWN:
|
||||||
format = format + " [" + town.getName() + "] " + resident.getName();
|
format = format + " [" + town.getName() + "] " + resident.getName();
|
||||||
|
|||||||
Reference in new issue
Block a user