1.8.8 Chat color by uuid

Discussion in 'Spigot Plugin Development' started by toshi2131, Apr 21, 2020.

  1. hey, i know this is kinda a easy question, but I'm not really sure how to do this.

    so what i wanna do is set a selected player uuid, and give him a custom chat color

    I'm not sure what event to use, and how to define a uuid?

    help?
     
  2. To grab someone's uuid sinply call getUniqueID() on a player,to give them one color? You either go through all color values and pick one,or you pick it,storing and using it? A config file can do the job with no problem

    For masages simply listen to PlayerAsyncChatEvent,get the message,add the color you wish,then set the new message to the colored one