Skip to content

Conversation

@postyizhan
Copy link

@postyizhan postyizhan commented Jun 29, 2025

图片

This was referenced Jun 29, 2025
@Hopefuls Hopefuls requested review from DevLeoko and Hopefuls June 29, 2025 13:43
* Check if current Bukkit version supports native hex colors
* @return true if supported
*/
private static boolean checkHexColorSupport() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this 100% viable? Can this cause issues with other plugins trying to implement this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest, I don't know for sure, but I don't think it will cause issues.

# Fallback behavior for unsupported clients
# 'strip' - Remove hex colors completely
# 'closest' - Convert to closest traditional color (future feature)
# 'keep' - Keep hex codes as-is
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would "keep" technically do? Just have them as visible characters or are they "hidden" within the text?

Edit: Fallback doesn't seem implemented yet, still interested in your idea about this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants