Solved White and reset

Discussion in 'Plugin Development' started by DoggyCode™, Dec 22, 2016.

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

    DoggyCode™

    What's programmatically the difference between ChatColor.WHITE and ChatColor.RESET?

    Let's say essentials changes your message to &aThis is a message, and I would like to modify "is" to &3is but still keep the original color for the rest of the message. Would calling ChatColor.RESET after ChatColor.BLUE suffice?


    Sent from my iPhone using Tapatalk
     
  2. Offline

    timtower Administrator Administrator Moderator

    @DoggyCode™ Reset will change it to plain white every time (unless you managed to change the default)
    If you want to keep the color used before you changed it then you need to find the used color first.
     
  3. Offline

    DoggyCode™

    So using ChatColor.WHITE would have the same effect as ChatColor.RESET? What's the point of that?


    Sent from my iPhone using Tapatalk
     
  4. @DoggyCode™
    The way it used to work was that ChatColor.WHITE would only change the colour to white, but keep italics and underlining, while ChatColor.RESET would clear everything. Although nowdays they seem to do the exact same thing (which is unsurprising, since Mojang has abandoned this method of chat colouring in favour of their chat components).
     
    DoggyCode™ likes this.
  5. Offline

    DoggyCode™

    This is rather interesting.


    Sent from my iPhone using Tapatalk
     
Thread Status:
Not open for further replies.

Share This Page