2 Chat Colors?

Discussion in 'Plugin Development' started by X_angelz_X, Mar 22, 2013.

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

    X_angelz_X

    I know this may sound stupid, but I am very sleepy and I am literally pulling my hair out at this..
    But, how do you add 2 ChatColors to an item?
    Code:java
    1.  
    2. rpg1Lore.add(ChatColor.RED + ChatColor.MAGIC + "A burning essence comes from within this!");
    3.  

    Is what I have so far.. :/ but the colors conflict..
     
  2. add ""+ to the from of the message
     
  3. Offline

    Nashor

    This man is correct.
     
  4. Offline

    ZeusAllMighty11

    Code:
    rpg1Lore.add(ChatColor.RED + "" + ChatColor.MAGIC + "A burning essence comes from within this!");
    
    Edit: Magic makes it so it flashes in weird symbols, how can you read that lol
     
  5. Offline

    seemethere

    If you're comfortable with Minecraft standard color codes you can just do:

    Code:
    ChatColor.translateAlternateColorCodes( '&', "&4&kA burning essence from within this!");
     
  6. Offline

    gomeow

    Or ChatColor.RED.toString() + ChatColor.MAGIC
     
  7. Offline

    Compressions

    gomeow I prefer this method. ;)
     
  8. Offline

    microgeek

    Use String.format(). Makes it easy.
     
Thread Status:
Not open for further replies.

Share This Page