birdflop/web

Minimessage Formatting

Closed this issue · 18 comments

When having colour mode in <#rrggbb> all of the formatting should also get changed to minimessage formatting etcetc

bwmp commented

the <#rrggbb> isn't specifically a mini message format, mini message also has its own gradient generator which you can find here https://docs.advntr.dev/minimessage/format.html#gradient making this tool kinda useless if mini message is already available.

Even though they have their own, there are still use cases for this and it would be better to add a toggle or a full minimessage mode if eg a plugin updates to only use minimessage format no longer accepting & codes for text formatting

bwmp commented

mind giving me an example of a use case where this tool is needed

Essentials (i think) is updating to use minimessage formatting, most paper plugins made only for paper wouldnt work with & codes, loads of custom plugins probably now use minimessage formatting so all the & codes wouldnt work

bwmp commented

yes but what is a use case where you can't just use mini messages formatting and you need this site is what i'm asking

Its not just for me, most server owners wouldnt understand half the docs sent out by paper they would use what they would have used prior to any updates to plugins, you could even just add a minimessage "mode" so to say that would just give them the gradient:hex1:hex2 and the bold so they could attempt to understand it better

I actually would be keen to see this added, I personally use the website to be able to visualise hex gradients and then I'll just copy the hex values into MiniMessage format of gradient:#111111:#222222

Adding the format to the hex generator would just save a little bit of time and allow for the nice visuals of the website :)

bwmp commented

I actually would be keen to see this added, I personally use the website to be able to visualise hex gradients and then I'll just copy the hex values into MiniMessage format of gradient:#111111:#222222

Adding the format to the hex generator would just save a little bit of time and allow for the nice visuals of the website :)

I'll look into adding it but if it isnt some simple addition it will not be added. the main issue is currently the entire gradient generation system is coded to work one way and given the way minimessage gradients are used it probably would require a recode of the system

bwmp commented

https://d0fe9778.simplymc.pages.dev/gradients/ take a look at this and tell me if its what you're wanting

The output doesn't appear to be updating

bwmp commented

image
seems to update fine for me are there any errors in console?

"Failed to load resource: net::ERR_BLOCKED_BY_CLIENT"

bwmp commented

"Failed to load resource: net::ERR_BLOCKED_BY_CLIENT"

that error is unrelated

That's the only error I got, so thought I ought to mention it :)

Same issue in a new private session
image

bwmp commented

could you try clearing your cache and testing again?

I just tried on my phone and it worked fine :)

bwmp commented

Will be implemented in next update