Clickable Text In 1.10

Discussion in 'Spigot Plugin Development' started by StarOfDoom, Jun 13, 2016.

  1. Hello!

    I'm looking for a way to get clickable text in 1.10. Fanciful gives me an error (that's what I was using in 1.9), and The Chat Component AI just doesn't seem to work for me (.setColor gives an error, along with it not letting me send a TextComponent through .sendMessage for whatever reason). Any other help? Thanks!
     
  2. Choco

    Moderator

    How did you use the TextComponent API? Also, it's used as Player#spigot().sendMessage(TextComponent), and not Player#sendMessage()
    You probably passed in the wrong thing for #setColor()
     
  3. I used the example in the documentation I linked. Copied line for line, and I had an error under .setColor( ChalColor.RED )
     
  4. Make sure you imported the right ChatColor.
     
    • Agree Agree x 2
  5. Thread solved maybe?

    Also if it's not can you send the error. And next time when you are asking for help saying something doesn't work and then not providing any code, context or errors to go along with it makes it significantly more difficult for us to help you fix your problem
     
    • Agree Agree x 1