Posted September 19, 20205 yr Hello, if I wanted to send a colored chat message to a user, including § in that string (for example §4Hello), the text is still white and some random characters are shown in the place of §. Is there anything regarding to chat colors that I missed? Please let me know, thank you! Screenshot: http://prntscr.com/uk9apt (supposed to be §4§l | §c Thank you for ...) Edited September 19, 20205 yr by musava_ribica
September 19, 20205 yr Author 34 minutes ago, diesieben07 said: Your character encoding is set incorrectly. Use UTF-8 everywhere. Yes, you need to tell javac about it explicitly. Those formatting codes are ancient legacy crap. Do not use them. Use the ITextComponent API which provides you with ways to set formatting. Thank you. Can you please link some documentation to ITextComponent?
September 19, 20205 yr Author Just now, diesieben07 said: There isn't any that I am aware of. How to use it depends on your MC version, they changed it a bunch in 1.16. Then, how do I import it ? Where do I look for it?
September 19, 20205 yr Author 1 minute ago, diesieben07 said: Nevermind, I already found it (I am coding for 1.14) Thank you once again
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.