Changing the color of the chat BOX

Discussion in 'Plugin Development' started by beastman3226, Mar 6, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    beastman3226

    I need some help. I took up this project thinking piece of cake. All I have to do is create three methods and I'm done. Little did I know that the Player class did not already have a method for this. I need a way of highlighting or changing the background color of a single message but only of a single player (I have this part setup) and still have it sent in that channel. Thanks!
     
  2. Offline

    frozenpoptartmc

    listen to the asyncplayerchatevent event
    if player is in hashmap of the channel
    set message ChatColor.COLOR + get message
     
  3. Offline

    RainoBoy97

    You cant change the background color of the chat without client modifications.
     
    X_angelz_X and AlexLeporiday like this.
  4. Offline

    beastman3226

    I knew it was a stretch. Any other methods I could try to keep the server owner happy?
     
  5. Offline

    minoneer

    beastman3226 Your only option would be to change the letters themselves; either make them a different color, print them blod, etc.
     
  6. Offline

    Lecrayen

    To answer your question, like RainoBoy97 said, you cannot change the background color, only the foreground color. To extend your question; is it possible to use a combination of the chat formating codes? I've tried doing both bold and red and it won't work
     
Thread Status:
Not open for further replies.

Share This Page