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))) Thanks
You should look into the TextComponent, which is included in Spigot. https://www.spigotmc.org/wiki/the-chat-component-api/
You didn't read the post I linked Player#sendMessage only supports String, but if you do Code (Text): Player#spigot().sendMessage(BaseComponent) it will work perfectly.
Not sure what you are correcting here? TextComponent inherits from BaseComponent, which is what the method accepts.