1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

same code, differnt result (hex code)

Discussion in 'Skript' started by Denloself, Jan 11, 2022.

Thread Status:
Not open for further replies.
  1. Denloself

    Denloself New Member

    Joined:
    Oct 3, 2021
    Messages:
    9
    Likes Received:
    0
    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):
    [​IMG]

    result of same file on my test server (still installed essentialsx):
    [​IMG]

    code i used:
    Code (Text):
    1. command /rainbowxd2 <text>:
    2.     trigger:
    3.         message "&7&m                             "
    4.         message "&7/rainbowxd2"
    5.         set {_name} to arg-1
    6.         message "%{_name}%"
    7.         message uncoloured "%{_name}%"
    8.         message length of uncoloured "%{_name}%"
    9.         if length of uncoloured "%{_name}%" <= 4:
    10.             message "pass"
    11.         else:
    12.             message "fail"
    13.         replace all "§" with "colorcode." in {_name}
    14.         message "%{_name}%"
    15.         message "&7&m                             "
    16.  
    17. command /why <text>:
    18.     trigger:
    19.         message "&7&m                             "
    20.         message "&7/why"
    21.         set {_name} to arg-1
    22.         message "%{_name}%"
    23.         message uncoloured "%{_name}%"
    24.         message length of uncoloured "%{_name}%"
    25.         if length of uncoloured "%{_name}%" <= 4:
    26.             message "pass"
    27.         else:
    28.             message "fail"
    29.         replace all "§" with "colorcode." in {_name}
    30.         message "%{_name}%"
    31.         message "&7&m                             "

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

Share This Page

Loading...