link and hex not working

  • 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.

AndrewKopera

Member
Mar 18, 2021
18
0
1
24
Server: git-paper-526
Skript version:2.5.3
SkAddons:Skquery,TuSke,SKrayfall,SKellet,sharpSK

Hello.
First i am gonna talk about the link.
So i wanted to make a clickable link for my /discord command. I followed the skript documentation (https://skriptlang.github.io/Skript/text.html) for text formating. I've put the <link:https://discordinvite> in and reloaded the skript. It doesnt throw any errors but it doesnt show any link. Only shows the Discord».
Code:
command /discord:
    trigger:
        send "&8[&8&lDiscord&l&8] &l» &e <link:https://discordinvite>"

Second is the hex color codes.
I want to use brown in a text so i followed the same skript documentation and it kept throwing errors at me. it said "cant understand this condition". How do I use hex color codes in MC?
Code:
            send ""<#D2691E> /loadout farmer &6-"" to player
The quotes are doubled because an error told me to double them.


Thanks for help.

Edit:
The link part is solved.
Code:
command /discord:
    trigger:
        send "&8[&8&lDiscord&l&8] &l» &e <link:https://discordinvite>https://discordinvite"
 
Last edited:
You shouldn't double the quotes. What's the error when they're not doubled? Try this:
Code:
send colored "<##D2691E> /loadout farmer &6-" to player

One reason it would error is because of the "#" in the message. Update to the latest version (2.5.3) to use it, and double the #.
 
You shouldn't double the quotes. What's the error when they're not doubled? Try this:
Code:
send colored "<##D2691E> /loadout farmer &6-" to player

One reason it would error is because of the "#" in the message. Update to the latest version (2.5.3) to use it, and double the #.
The error was "Invalid use of quotes..." i will try the doubled "#" i will update the post after i try it

EDIT: It works. Thank you so much
[doublepost=1617726251,1617725698][/doublepost]
You shouldn't double the quotes. What's the error when they're not doubled? Try this:
Code:
send colored "<##D2691E> /loadout farmer &6-" to player

One reason it would error is because of the "#" in the message. Update to the latest version (2.5.3) to use it, and double the #.
Another question. How can i use this in chat or msg or /itemrename? thanks
 
Status
Not open for further replies.