Checking when chat is clicked

Discussion in 'Spigot Plugin Development' started by _TMT_, Jun 26, 2016.

  1. So I've seen plugins before where something happens when you click a spot in chat. Kind of like when someone posts a link in chat and your able to click it to go to the webpage. How can I go about doing this for my own plugin? I want to have something written in chat like "[Buy] : [Sell]" and have something different happen depending on wether the player clicks on "[Buy]" or "[Sell]".
  2. JSON formatting for hover events and I believe click events as well.

    I know in previous versions fanciful gave an awesome API for hover events but not sure about clicks, search it up and see if the code can be adapted to 1.10 for clicking.