Jump to content
  • 0

how to change color on player.sendMessage?


Question

6 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted (edited)
player.sendMessage(ChatColor.RED + "Message");or 
 
player.sendMessage(PrismaColor.SALMON
Edited by IPXS
  • 0
Posted

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.

  • 0
Posted
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");"

Guest
This topic is now closed to further replies.


×
×
  • Create New...