Add Chat Formatting Support For Servers#1483
Add Chat Formatting Support For Servers#1483DrPerkyLegit wants to merge 2 commits intoMCLCE:mainfrom
Conversation
|
i feel like all chats should have color processing, as this would require server owners to send custom chat packets to have custom chat colors for when a player talks. https://www.youtube.com/watch?v=JbNUi6sNOeM in 1.1 its shown you could even put colroed chat as a player, but required a mod to put the section symbols in bukkit, you can simply just replace the text sent by a player with section symbols for it to show color, i feel that should be doable without having to send a custom packet etc, all you should have to do is modify the actual text in the packet and it have the color codes and it process normally |
|
currently i do it this way cause it didnt seem like something that would want to be added to non dedicated server chats but its possible to change, i would also suggest that doing it that way we update the max char limit to only be based on displayed chars (i will code this) so that the chat colors dont cause the string to hit the 123 max without actually displaying that many characters |
Description
adding chat formatting for servers
Changes
Previous Behavior
chat wouldnt render html formatting

servers had no support for localization in messages
Root Cause
it just wasnt needed for p2p clients, chat was never added so they never bothered with the extra features
New Behavior
the opposite of Previous Behavior except its sent from a server message, tested with fourkit as its designed for a server to send the message


Fix Implementation
changes the chat labels to be html based so it can render html formatting
added support for multiple argument chat messages that also support formatting (this part is designed for the server, no default client access)
changed player messages to use < and > for <> because it breaks when using html labels
AI Use Disclosure
i used ai to get the regex pattern cause i dont know how to make those honestly
Related Issues