Skript

Skript

743k Downloads

Hexadecimal Colour Codes Not Working With Variables

Jamonster123 opened this issue ยท 1 comments

commented

Skript/Server Version

[01:22:51 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[01:22:51 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[01:22:51 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[01:22:51 INFO]: [Skript] Server Version: 1.20.6-2233-0d6766e (MC: 1.20.6)
[01:22:51 INFO]: [Skript] Skript Version: 2.9.0 (skriptlang-github)
[01:22:51 INFO]: [Skript] Installed Skript Addons: 
[01:22:51 INFO]: [Skript]  - DiSky v4.17.2
[01:22:51 INFO]: [Skript]  - skript-reflect v2.5.1 (https://github.com/SkriptLang/skript-reflect)
[01:22:51 INFO]: [Skript]  - SkBee v3.5.7 (https://github.com/ShaneBeee/SkBee)
[01:22:51 INFO]: [Skript] Installed dependencies: None

Bug Description

Hexadecimal color codes are not being converted into actual colors when a message is sent in chat when using variables and text in the following format: <#%{var}%> (<#AAAAAA> works when <#%{var}%> doesn't)

Expected Behavior

It should treat the variable as if it the text is symbolised

Steps to Reproduce

Put the following code in a skript and send a message in chat

set {chatprefix1::%player's uuid%} to "AAAAAA"
set the chat format to "<#%{chatprefix1::%player's uuid%}%> &lHELPER <#00FFFF>%{_playername}%: <#7393FF>[message]"

Errors or Screenshots

image

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
commented

have you tried formatted "whatever"?