Support for newer chat functions
MidnightSugar opened this issue ยท 2 comments
The adventure api (which is added natively to paper and sponge, but has a maven repo for bukkit) includes a feature called minimessage which uses tags to create json messages in a very simple way. I am thinking this could somehow be implemented into trigger reactor, since the support for the new chat apis are severely lacking right now.
It supports basic colors, rgb, hover, click, keybinds, translations, insertions, gradients, and custom fonts.
https://docs.adventure.kyori.net/minimessage/format.html#minimessage-format
up
Interestingly, we do have some previous trials to support this feature already: https://github.com/TriggerReactor/TriggerReactor/blob/master/bukkit/src/main/resources/Executor/MESSAGE2.js
The only problem I remember is that it didn't work on certain platforms, so it was renamed to XYZ2.js as a temporary solution
You can probably use it even now