JSON Clickable text?

Discussion in 'Plugin Development' started by CaveBoy36, Aug 28, 2015.

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

    CaveBoy36

    Hai! I've been working on this plugin for a while and I just can't get anything working to make a text that is clickable and can run a command. I have tried so many things including Fanciful. It will just come up with errors in the code and I don't know how to fix it. Is the clickable text still possible? If so can someone show me how to do it. Thank you!
     
  2. Offline

    mrgreen33gamer

    Honestly I think using Fanciful is the best solution. You could send some rawtext, but you'll have a lot more to deal with.
     
  3. Offline

    CaveBoy36

    @mrgreen33gamer Can you show me how to use Fanciful? I must be doing it wrong
     
  4. Offline

    teej107

    @CaveBoy36 You can use the json-simple library. It is already packaged in with the Bukkit API. The only thing you need to do yourself is sending the json. Here is a wrapper library I made for easy json text using json-simple: https://github.com/teej107/MinecraftJSON
     
  5. Offline

    CaveBoy36

Thread Status:
Not open for further replies.

Share This Page