#Adjust shadow color at text
1 messages · Page 1 of 1 (latest)
This isn't possible with vanilla text displays (as far as my knowledge goes), therefore not possible with FancyHolograms unfortunately.
It actually is possible, I think on exclusive to 1.21.4 and higher. But I think this is disabled due to some bug in library we use to parse colors. Need @hard flint confirmation for this one.
Perhaps @humble crag pushed a fix already?
I'm afraid not yet, it's a bit messy to provide backwards compatibility, I'm not really sure what is causing the error as I even have a try-catch which is seemingly just not doing anything
Feel free to have a look maybe a fresh pair of eyes will help https://github.com/OakLoaf/ChatColorHandler/blob/444e3e9fcf86e1ff1471402beb894d54a22ed967/src/main/java/org/lushplugins/chatcolorhandler/messengers/MiniMessageMessenger.java#L77
Maybe you can simply check if Bukkit.getUnsafe().getProtocolVersion() is higher or equal to the protocol version of when this was added, and only add this tag if it was.
Can't think of any other solution right now
Yeah I guess that'd be the other option
Working on a fix for this now
I came up with a hacky but working solution
private static List<TagResolver> tagResolvers() {
List<TagResolver> resolvers = new ArrayList<>();
try {
// Resolvers are ordered in order of their addition to MiniMessage
resolvers.add(StandardTags.color());
resolvers.add(StandardTags.decorations());
resolvers.add(StandardTags.gradient());
resolvers.add(StandardTags.rainbow());
resolvers.add(StandardTags.reset());
resolvers.add(StandardTags.transition());
resolvers.add(StandardTags.pride());
resolvers.add(StandardTags.shadowColor());
} catch (NoSuchMethodError ignored) {}
return resolvers;
}
It will basically just add to the list, if one is not supported then it errors and returns the list of current resolvers
Tested this on 1.21.1 and 1.21.4, will pop out a release for you shortly
Version 5.1.6 should now be good to go!
Just tested it too and it works fine, thank you!
Awesome news, sorry for the delays on that one, I've got a better testing environment setup for ChatColorHandler now so if you have any issues it should be much easier for me to test
I think this is possible by having two holograms with different colors and no shadow. Overlaying them would allow something like this I guess.
Yo, did you add the feature with the chat color handler?
Yes text shadow now works: https://docs.papermc.io/adventure/minimessage/format/#shadow-color
nice!