Discussion in 'Spigot Plugin Development' started by Achieving, Apr 20, 2017.

  1. Hi, i was wondering how to add a JSON hover over and click to run command addition to a sendmessage i have.

    I need this done without the need for another library (spigot only)

    The code i need this added to is
    Code (Text):
     getRegenStatus().getSymbol() + getDtrColour() + JavaUtils.format(Double.valueOf(getDeathsUntilRaidable(false)))
    • Agree Agree x 2
  2. You didn't read the post I linked ;)

    Player#sendMessage only supports String, but if you do
    Code (Text):
    it will work perfectly.
  3. He means your player object .spigot().sendMessage(textComponent);
  4. Not sure what you are correcting here? TextComponent inherits from BaseComponent, which is what the method accepts.
    • Agree Agree x 2