Skip to content
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

HEX support #21

Open
strumswell opened this issue Nov 16, 2020 · 2 comments
Open

HEX support #21

strumswell opened this issue Nov 16, 2020 · 2 comments
Assignees
Labels
feature New feature or request next release

Comments

@strumswell
Copy link
Owner

No description provided.

@strumswell strumswell added the feature New feature or request label Nov 16, 2020
@strumswell
Copy link
Owner Author

My answer concerning this topic from dev.bukkit.org:

Hey, I don't have the time to work on ServerlistMOTD currently, super sorry. But there is a way you can still use hex codes, it's just not super nice:

Let's say you want to use the hex code #FF0000. You have to switch # with an x and append a & to every character. It will look like this: &x&f&f&0&0&0&0Welcome 

 

You can also do gradients manually. Example from #1515db to #2bfafa:

&x&1&5&1&5&d&bN &x&1&c&6&1&e&5i &x&2&3&a&d&e&fc &x&2&b&f&a&f&ae (remove spaces ofc)

Which will write out "Nice" from a darkish blue to an aqua. You can use this site, to get the in-between hex codes: https://colorize.fun/en/minecraft

 

I know it's not nice to use but it works for the moment. :) 

@strumswell strumswell self-assigned this Sep 12, 2021
strumswell added a commit that referenced this issue Sep 12, 2021
- Added HEX support, thanks to @harry0198 and his HexiTextLib! He did 99% of the work and I just needed to make so small adjustments. #21
- Catch possible NPE with getOfflinePlayer #32
- Use Logger instead of sysout #31
- Let ServerlistMOTD shut up and stop spamming console 😆
@strumswell
Copy link
Owner Author

HEX Beta out. Please check it out and leave some feedback here! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request next release
Projects
None yet
Development

No branches or pull requests

1 participant