JSON to TextComponent

Discussion in 'Spigot Plugin Development' started by B1acksheep, Feb 19, 2016.

  1. Hey,
    Does anyone know a solution to translate json strings directly into a Text Component?
    Alternatively, is there a way to send a json string directly to a player?

    Thanks in advance for the answers! :)
  2. clip


    You can send raw json via packets
    • Winner Winner x 2
    • Like Like x 1
  3. I'm pretty sure there was a static method TextComponent#fromJson.
    Not 100% tho. And currently I'm unable to check. Take a look at jd.
  4. Thanks!
    I probably had looked only at api.chat ...