srnyx / limited-lives

Each player has a limited number of lives. If you die, you are punished!
https://srnyx.com
MIT License
5 stars 1 forks source link

Hex color support in messages.yml (preferably MiniMessage implementation) #21

Closed SpeastTV closed 4 months ago

SpeastTV commented 4 months ago

What and How?

Hex color (aka. rgb) support, preferably a MiniMessage implementation in messages.yml. image

Why?

Because hex colors are the new way to go, they are much more customizable and not limited to the vanilla colors (e.g. &a). Also, if you use MiniMessage to implement hex colors, it would have other benefits besides hex colors.

Are there alternatives?

Another way, instead of MiniMessage, to implement hex colors.

Checks

Anything else

No response

SpeastTV commented 4 months ago

Or is there, by any chance, a way to use hex colors with the already implemented JSON? --> https://github.com/srnyx/annoying-api/wiki/messages-file

Edit: I don't think so (it's not documented)

srnyx commented 4 months ago

Regarding hex codes: You can use &x&f&f&f&f&f&f, ffffff being the hex code (so &x and then the hex code with & before each character). It's a bit annoying, but all I can offer right now. This isn't mentioned in the wiki cause it's a feature in Spigot/Paper (not exactly sure which) btw

Regarding MiniMessage support: Track https://github.com/srnyx/annoying-api/issues/6 for MiniMessage support, as my API is what handles the messages files for all my plugins. I've attempted support before, but it didn't go well, and I'm not really sure if I'll ever add support for it. I experienced issues with PlaceholderAPI and my own placeholders.

Closing this as a "duplicate" so that I only have to worry about the issue on the API's GitHub.