same code, differnt result (hex code)

  • 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 comminuty!

    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!

Status
Not open for further replies.

Denloself

Member
Oct 3, 2021
12
0
1
23
i am trying to make hex code being uncoloured (i know the correct format in skript should be <##hexcode>) and then i found out it was not working, when i am trying to debug it, i found out i used two exact same code and and differnt result

i used essentialsx and essentialsx chat, i am not sure is it because of them.
and also, i tried same code on my test server

result of same code on my test server (also installed essentialsx):
2022-01-11_14.03.31.png


result of same file on my test server (still installed essentialsx):
2022-01-11_14.04.51.png


code i used:
Code:
command /rainbowxd2 <text>:
    trigger:
        message "&7&m                             "
        message "&7/rainbowxd2"
        set {_name} to arg-1
        message "%{_name}%"
        message uncoloured "%{_name}%"
        message length of uncoloured "%{_name}%"
        if length of uncoloured "%{_name}%" <= 4:
            message "pass"
        else:
            message "fail"
        replace all "§" with "colorcode." in {_name}
        message "%{_name}%"
        message "&7&m                             "

command /why <text>:
    trigger:
        message "&7&m                             "
        message "&7/why"
        set {_name} to arg-1
        message "%{_name}%"
        message uncoloured "%{_name}%"
        message length of uncoloured "%{_name}%"
        if length of uncoloured "%{_name}%" <= 4:
            message "pass"
        else:
            message "fail"
        replace all "§" with "colorcode." in {_name}
        message "%{_name}%"
        message "&7&m                             "


and... if anyone know how to uncolour hex code with that format, please tell me :emoji_grinning:
 
Status
Not open for further replies.