Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to change nickname color via run_command #151

Open
AE720 opened this issue Dec 17, 2023 · 1 comment
Open

Unable to change nickname color via run_command #151

AE720 opened this issue Dec 17, 2023 · 1 comment

Comments

@AE720
Copy link

AE720 commented Dec 17, 2023

This is a little ambiguous so I wasn't sure if this fell on MiniMessage or not.

The goal is to change the color of the user with a command in a book.

<click:run_command:"/nick &0%player_name%">TEST
To the console is /nick <reset><black>[PlayerName]

It would be really nice if could be omitted in the even of the /nick command and &0 went through.

EDIT: Realizing I was on 1.7.1. It now looks like <!obf><!b><!st><!u><!i> on 1.7,2

Hopefully it's as simple as maybe adding a unique tag that an if/else statement can remove those tags and append what you typed literally in the event there's other use cases without singling out the condition of /nick command being parsed.

@AE720
Copy link
Author

AE720 commented Dec 30, 2023

After discovering HTML codes will work such as this, the problem took care of itself. You can either close it. Or this can just be a workaround until conditions are cleaned up in the string builder
/nick &#FAD7A0%player_name%

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant