TriggerReactor

TriggerReactor

24.6k Downloads

Support for newer chat functions

MidnightSugar opened this issue ยท 2 comments

commented

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

commented

up

commented

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

https://github.com/TriggerReactor/TriggerReactor/blob/master/bukkit/src/main/resources/Executor/BROADCAST2.js

https://github.com/TriggerReactor/TriggerReactor/blob/master/bukkit/src/main/resources/Executor/LOG2.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