Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

  • 0

Help how to change color on player.sendMessage?


Go to solution Solved by Rootware,

Question

6 answers to this question

Recommended Posts

  • 0
  • Solution

As i know a message color specified in 4 bytes values (R G B and transparency) inside systemmsg-e.dat. Server side can't handle the colors except if you will change chat type of message. But it will another story.

Share this post


Link to post
Share on other sites
  • 0

This message uses the string from systemmsg-e.dat. If you want to change the color the you need make custom message ID for this or change the color of current. In last case all messages where uses "player.sendMessage()" will uses this color.

Share this post


Link to post
Share on other sites
  • 0
1 minute ago, Rootware said:

This message uses the string from systemmsg-e.dat. If you want to change the color the you need make custom message ID for this or change the color of current. In last case all messages where uses "player.sendMessage()" will uses this color.

i know that but i dont want to change all messages to a deifferent color. i want some messages like the one i poted to be despalayed with a different color. 

 

33 minutes ago, IPXS said:
player.sendMessage(ChatColor.RED + "Message");or 
 

player.sendMessage(PrismaColor.SALMON

do i need to crate a class "ChatColor"?   i get error in eclipse when i add "(ChatColor.RED + "Message");"

Share this post


Link to post
Share on other sites
  • 0
Guest
This topic is now closed to further replies.