Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for newer chat functions #479

Open
MidnightSugar opened this issue Mar 10, 2022 · 2 comments
Open

Support for newer chat functions #479

MidnightSugar opened this issue Mar 10, 2022 · 2 comments
Labels
category:feature-request A feature request, i.e: not implemented / a PR. domain:compatibility Plugin is not compatible with external system package:bukkit-latest Related to Bukkit latest (1.13~latest)

Comments

@MidnightSugar
Copy link

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

@MidnightSugar MidnightSugar changed the title Better json support Support for newer chat functions Mar 10, 2022
@wysohn wysohn added domain:compatibility Plugin is not compatible with external system package:bukkit-latest Related to Bukkit latest (1.13~latest) category:feature-request A feature request, i.e: not implemented / a PR. labels Mar 10, 2022
@Felleus
Copy link

Felleus commented Dec 9, 2023

up

@wysohn
Copy link
Member

wysohn commented Dec 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:feature-request A feature request, i.e: not implemented / a PR. domain:compatibility Plugin is not compatible with external system package:bukkit-latest Related to Bukkit latest (1.13~latest)
Projects
None yet
Development

No branches or pull requests

3 participants