Color of messages

Discussion in 'Plugin Development' started by immapoint, Jan 17, 2011.

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

    immapoint

    Hi,

    i'm searching for a method to give messages(-> player) a color.
    in hey0 you could do something like this:
    Code:
    player.sendMessage(color.red + "The Message in red");
    but this is not possible anymore..

    does anyone have an idea how to do that?
     
  2. ChatColor.Red

    you might need to import org.bukkit.ChatColor
     
  3. You also need to make it capital. example:
    Code:
    import org.bukkit.ChatColor;
    
    p.sendMessage(ChatColor.RED+"Red text.");
     
Thread Status:
Not open for further replies.

Share This Page