Triton
Triton copied to clipboard
Switch to MiniMessage on messages.yml
Instead of legacy &
color codes, use MiniMessage on Triton's message.yml
.
This will be a breaking change.
What about supporting both legacy color codes & MiniMessage? I personally hate MiniMessage. Few reasons why:
- People have to write a lot more to apply colors.
->
&2Success Text
vs.<dark_green>Success Text</dark_green>
equals same result, but MiniMessage triples the amount of written characters. - Sometimes it does not respect pair tags especially on multi-line messages. And a lot more..
Yep, same! Couldn't agree more, i just use minimessage for rainbow color rgb things hhh
@ElFrod0 @PalmTamino Thanks for your feedback! I totally agree with you and will keep this in mind while implementing this
I personally disagree and support the idea of just Minimessage. Enabling &c or &a adds incredible ambiguity to a config file, where does it end? What do these actually mean? Closing and Opening the colour, the boldness, italics. Telling where it's to be reset. Where a new line will be, all in a standard format is far superior to the & rubbish which is harder to digest and although shorter, perpetuating rubbish formatting. Using dark-green is an incredibly unfair example. Red, Grey, Black are much shorter.
To give more context. "
Configuration files should be as explicit as possible and legacy &
color codes are confusing and error-prone.
I wholeheartedly agree with @VQ9.
It might be quicker to type out the config using &
codes, but if anyone else (or even your future self!) ever needs to read and understand your messages.yml
, the MiniMessage format is objectively better -- not to mention the confusing behavior that @VQ9 described when mixing and matching styles. In my opinion, using &
syntax in configuration files is an extremely poor design choice and Triton should not perpetuate it.
Take advantage of the fact that you're releasing a new major version and introduce positive breaking changes.
If you really want to, see if there's a way to "translate" existing files from the legacy syntax to MiniMessage.