Jump to content

Chat color codes formatting issue


musava_ribica
 Share

Recommended Posts

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 ...)

Screenshot_473.png

Edited by musava_ribica
Link to comment
Share on other sites

34 minutes ago, diesieben07 said:
  1. Your character encoding is set incorrectly. Use UTF-8 everywhere. Yes, you need to tell javac about it explicitly.
  2. 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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.