This is an API, so of course it's for other developers, not server owners.
To use the API, all you have to do is:
https://gyazo.com/141dd341317c1ca5bbd142e24646dc77
With this API you can...
While there are other libraries offering the ability to send Json messages in chat, this one comes with the following benefits:
The download comes with a plugin to demonstrate various example uses, which includes the following commands:
/jsonchat
/jsonchat example
To use the API, all you have to do is:
Java:
new JsonMessage().append(ChatColor.GREEN + "Click to fly!").setHoverAsTooltip("Seriously, just click!").setClickAsExecuteCmd("/fly").save().send(player[]);
With this API you can...
- Create tooltips for when a player hovers over your chat message
- Redirect players to a URL, when a player clicks your chat message
- Suggest a command/message to a player's chat box when they click your chat message
- Force the player to run a command when they click your chat message
- Or a combination of clicks and hover events at the same time
While there are other libraries offering the ability to send Json messages in chat, this one comes with the following benefits:
- Everything in a single class file! Just ’new JsonMessage()’ and go!
- No headache of "BaseComponent" "TextComponent" "TranslateComponent" "ComponentBuilder"!
- No boilerplate stylize(), bold(), color() methods, just send a string with ChatColor codes!
- Some libraries have issues with colors breaking on new lines. Not this one!
The download comes with a plugin to demonstrate various example uses, which includes the following commands:
/jsonchat
/jsonchat example