question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ServerListPlus fork won't support more than 3 hex color codes per motd line

See original GitHub issue

Hey, this is in regards to your ServerListPlus fork supporting hexadecimal color codes through your MineDown library, on mc 1.16.3, waterfall (bungee).

I’m asuming the library is shaded into your SLP fork, and all I need in addition to your fork is ProtocolLib updated.

In ServerListPlus.yml, configuring an motd like this:

Personalized:
  Description:
  - |-
    &aM&#55FF55&i&#55FF55&t&#55FF55&h&#55FF55&randircraft
                  &#2CFF00&¡Hola de nuevo &l%player%!

will make the 4th hexcode on the first line show as text instead of formatting the following text. Only setting 3 formatting hexcodes will work fine. It seems like there’s a per-line limit. It also doesn’t matter if the hexes are diferent, I set them all to the same because I was trying to figure out what’s wrong. The second line works fine, and it’s not because it’s a diferent hex, but rather that it’s a new line.

Also, I had to set the first letter’s (M) color with a regular standard minecraft color code, because it wouldn’t work otherwise for whatever reason (that’s another issue).

I wanted to make some gradient-like effects, but I can’t like this. Am I doing it wrong or is there an issue / limitation here?

In essence, how do you make gradients using your fork? Is it even possible? imagen

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Andre601commented, Nov 22, 2020

Please either open an issue on the SLP fork if your request is related to that (although I will never add MiniMessage support, I simply don’t like its syntax and prefer my own MineDown one. Of course I can’t stop anyone from forking) or open an issue on MineDown to request gradient support officially.

This proofs to me that you didn’t even bother to read my message as a whole, otherwhise you would’ve spotted the “(I don’t want to create a separate, unrelated issue here as the fork doesn’t have issues open)” in my message. I would’ve created an issue there if you allowed that in the first place.

And that you don’t like MiniMessage’s syntax is imo not a valid reason for others to not have support for it. You don’t have to use it for your purposes, but since this is pretty much the only fork I know of, which supports HEX colors, do people have to use this one, if they want to keep SLP… So what if another person comes and askes for this? And then another one? And then again? MiniMessage is by far one of the more popular and well used libs for colors, so I highly doubt people would prefer your syntax (that doesn’t even work right when the code ends on a valid legacy color/formatting code. See #9) over the one of MM.

But this was just my response to this. Do with it what you want.

1reaction
Phoenix616commented, Oct 24, 2020

I cannot reproduce the issue in the latest MineDown. I’ve updated the version used in my ServerListPlus fork, please check if that already solves your issue. If not then this might be a MOTD-specific issue :S

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · Phoenix616/MineDown - GitHub
Can't use gradient that includes the same color multiple times ... ServerListPlus fork won't support more than 3 hex color codes per motd...
Read more >
Solved - How to use hex color in MOTD - SpigotMC
Supporter. It's a little messy, but you can use this: &x&F&F&F&F&F&F. Where each F is a single character of the hex colour code....
Read more >
How To Make A Custom MOTD for Your Minecraft Server (Add ...
How can you add a custom message of the day with colors to your Minecraft server? Well, we answer that exact question in...
Read more >
How To Format/Color Your Minecraft Server MOTD ... - YouTube
In this video I show you how to add colors to your Minecraft server's message of the day. All of the Minecraft format...
Read more >
Advanced Spigot Coding | Hex Color Codes | (Ep. 9) Spigot 1.16
Wooo 1.16 spigot! The big thing about this update was Hex color codes. In this video, I talk about how it works and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found