Open stackotter opened 2 years ago
Would we just need to modify ChatComponentColor to provide ANSI escape sequences for each enumeration, and then use tokens.map(\.color.rawValue + \.string).joined()
in LegacyFormattedText#toString?
Yeah essentially, although don’t make the rawValue ansi, just give the colour enum an ansiValue property (cause we might need more ‘raw’ values in future too)
Alright, I'll do this one.
It's pretty self explanatory, currently chat and disconnect messages are just printed out plain (and disconnect messages don't even have the legacy formatting codes removed).