SkriptLang / Skript

Skript is a Spigot plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
https://docs.skriptlang.org
GNU General Public License v3.0
1.06k stars 369 forks source link

Hexadecimal Colour Codes Not Working With Variables #6959

Open Jamonster123 opened 1 month ago

Jamonster123 commented 1 month ago

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

erenkarakal commented 1 month ago

have you tried formatted "whatever"?