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

Wrong showned color when using quotes with Hex colors #3213

Closed
antoinech2 opened this issue Jul 25, 2020 · 4 comments
Closed

Wrong showned color when using quotes with Hex colors #3213

antoinech2 opened this issue Jul 25, 2020 · 4 comments
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.

Comments

@antoinech2
Copy link

Description

When you try to send message with hexadecimal color, the color showned is not the same if you use quotes around variable or not. The good color is when there is no quotes

Steps to Reproduce

set {test} to "<#171f96>Test"
send "%{test}%"
Output: Wrong color
send {test}
Output: Correct color

Expected Behavior

The colors should be the same with or without quotes

Errors / Screenshots

image

Server Information

  • Server version/platform: Minecraft 1.16.1 running Paper 1.16.1-R0.1-SNAPSHOT
  • Skript version: 2.5-alpha6(rev1)

Additional Context

@APickledWalrus
Copy link
Member

What if you do:

"%colored {test}%"

@Pikachu920
Copy link
Member

actually, the first example should not work at all. skript isn't meant to do parse the colors (or any chat formatting) from variables.

@Pikachu920
Copy link
Member

i take that back, it looks like colors work but nothing else

@antoinech2
Copy link
Author

What if you do:

"%colored {test}%"

Well, it's exactly the same, wrong color

@APickledWalrus APickledWalrus added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. investigating The core developers are currently investigating this issue. Usually used for complex cases. priority: low Issues that are not harmful to the experience but are related to useful changes or additions. labels Jul 25, 2020
@APickledWalrus APickledWalrus added completed The issue has been fully resolved and the change will be in the next Skript update. and removed investigating The core developers are currently investigating this issue. Usually used for complex cases. labels Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.
Projects
None yet
Development

No branches or pull requests

4 participants