-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Legacy formatting codes have been detected in a MiniMessage string #766
Comments
You can't use the old item editor without turning off MiniMessage. There is no way around it that I am willing to do. I will update the comment, but nothing more. The toggles are for people who dont want to migrate yet. |
Will the old system work all the time in the future, because I don't want to migrate either? |
It will not. once legacy color codes are removed, it goes as well. the 2 options are linked with each other. previously added items will work if under Editor-Items internally always but no new items could be added. |
When do you plan to remove the old color codes? and why can't old color codes stay forever? |
Paper going to eventually remove them completely, The only reason they are still here is because Spigot was a hold out and kept the implementation, but also put no time into developing an alternative that I know of while Mojang had dropped support for it. We now have an alternative called Kyori/MiniMessage developed in the past couple years that is based directly on Mojang's changes 13 years ago which was Strings -> Components and this library allows adding new features for plenty of things that would require a lot of hacky changes. They can't stay forever because they just won't exist in paper's server code anymore. that's the only reason they even work. Legacy Color Codes open a gateway to a plethora of unsupported and oddball formats that lead to headaches in maintaining configurations as people do odd things to get gradients to work which migrators freak out on requiring more manual work. Legacy Example: This is how you would previously do a gradient from https://www.birdflop.com/ Today's Example: I myself have a lot of problems reading the legacy color gradients, my eyes actually get strained from it and I know I am not the only one with that issue. Legacy Color Codes have multiple oddball formats, MiniMessage is one unique standard that is implemented on Fabric, Forge, Velocity, Paper, so in the event that I expand to multiple platforms. The color format would not change so configurations can stay the same. It is the same reason I elected internally to use mojang mapped ids as to also allow people to port their configurations to other server types without having to worry about much things. |
Spark link
No response
Plugin Version
v1.21-74
Server Version
1.21
Server Platform
Purpur
Describe the bug
Crate Type
None
Steps to reproduce
Additional context
/crates additem CrateExample 9 90
[11:31:24 WARN]: [CrazyCrates] There was an error while loading the CrateExample.yml file.
net.kyori.adventure.text.minimessage.internal.parser.ParsingExceptionImpl: Legacy formatting codes have been detected in a MiniMessage string - this is unsupported behaviour. Please refer to the Adventure documentation (https://docs.advntr.dev) for more information.
§e§lHay Block
^^
at net.kyori.adventure.text.minimessage.internal.parser.TokenParser.parseString(TokenParser.java:170) ~[adventure-text-minimessage-4.17.0.jar:?]
Agreements
The text was updated successfully, but these errors were encountered: