BentoBox icon indicating copy to clipboard operation
BentoBox copied to clipboard

Use ChatComponentAPI to support JSON localizable messages (clickable, etc)

Open Poslovitch opened this issue 7 years ago • 4 comments

Is your feature request related to a problem? Please describe. Currently, we cannot easily implement clickable texts or use some of Spigot's built in message methods.

Describe the solution you'd like Spigot implements Bungeecord's ChatComponentAPI. It's basically an object representation of the JSON message format used in vanilla commands such as /title or /tellraw.

Additional context I started working on that in https://github.com/BentoBoxWorld/bentobox/tree/json-localization-support.

Poslovitch avatar Oct 06 '18 13:10 Poslovitch

The referenced issues are things that need to be done alongside this feature request.

Poslovitch avatar Oct 06 '18 13:10 Poslovitch

That's going to be a tough one: implement this JSON support while avoiding as much as possible to break the API... I'm going to have a lot of fun! 🙂

Poslovitch avatar Dec 13 '18 14:12 Poslovitch

It's harder than what I thought it would be. I'm litterally bulldozing my way through this uncharted territory - not that much plugins are using ChatComponentAPI to do their localization, and lesser are using it with "variables".

Poslovitch avatar Dec 13 '18 16:12 Poslovitch

I think I found what I was looking for: https://github.com/MiniDigger/MiniMessage

Poslovitch avatar Apr 30 '20 07:04 Poslovitch