#Adjust shadow color at text

1 messages · Page 1 of 1 (latest)

cursive kite
#

A command to adjust the color of the shadow at a hologram text

novel skiff
long linden
#

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.

hard flint
#

Confirmed

#

There was/is some bug in ChatColorHander afaik

long linden
#

Perhaps @humble crag pushed a fix already?

humble crag
#

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

GitHub

An easy to use Color Library for Minecraft Bukkit Plugins - OakLoaf/ChatColorHandler

long linden
#

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

humble crag
#

Yeah I guess that'd be the other option

humble crag
#

Working on a fix for this now

humble crag
#

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!

hard flint
#

Just tested it too and it works fine, thank you!

humble crag
#

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

stable tree
#

I think this is possible by having two holograms with different colors and no shadow. Overlaying them would allow something like this I guess.

cursive kite
cursive kite
#

nice!