Colored player list!

Discussion in 'Plugin Development' started by Mathiashelseth99, Jan 1, 2014.

Thread Status:
Not open for further replies.
  1. Hi, i am trying to make a basic plugin where a player is getting a colored list name!
    So when you hold down "TAB" the player will see his/her name in maybe blue!
    I have managed to get the plugin to work if i executed an command!
    But i want it to show all the time, so when a player logs in for the first time! it will show his/her name and all the others name (Which is on the server) in a specific color wich i will set by using ChatColor.(<My Color>)
    So my question is, if i can use <player.isOnline()> to set a players list name colored when the player is Online and how?
     
  2. Offline

    GusGold

    Mathiashelseth99

    IF this is permissions based which it looks like it, why not just use the onPlayerJoin event, check if they have permissions for the colour (let's say ChatColor.BLUE) and if so, set their tab colour to ChatColour.BLUE
     
  3. Offline

    xTrollxDudex

  4. Offline

    iFamasssxD

    You can also use teams and Scoreboards. Create a team and set the Prefix to the chat color.
     
Thread Status:
Not open for further replies.

Share This Page