Solved How can i color send with variables

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Dmw112233

Member
Jun 8, 2023
2
1
3
dye helmet is work
but send outputs the text as it is without changing the color.
how can i fix it?

Code:
on right click on any concrete:   
    set {_col::*} to "%event-block%" split by " "
    replace all "'" with "" in {_col::1}
    set {_col} to ({_col::1} parsed as colour)
    dye player's helmet {_col}
    send "<%{_col}%>hi"
 
dye helmet is work
but send outputs the text as it is without changing the color.
how can i fix it?

Code:
on right click on any concrete:  
    set {_col::*} to "%event-block%" split by " "
    replace all "'" with "" in {_col::1}
    set {_col} to ({_col::1} parsed as colour)
    dye player's helmet {_col}
    send "<%{_col}%>hi"
try to
Code:
send formatted "<%{_col}%>hi"
 
  • Like
Reactions: Dmw112233