Using <link:> with a variable

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

Status
Not open for further replies.

taso

Member
Jul 15, 2022
1
0
1
command /discord:
trigger:
send "&eOur Discord"
send "<link:%{discord}%>&4Click Me<reset>"

command /setdiscord <text>:
trigger:
set {discord} to args 1
send "&eCorrectly set to: &c%args 1%"

I have no idea why it doesnt work correctly
 
Hey there, from what i've seen for suggestion command and that, variable doesn't seem to work with it somehow
so i'd suggest you to use this instead:
(SkBee required)
Code:
command /discord:
    trigger:
        set {_t} to text component from "&4Click Me" #text you're sending to player
        set click event of {_t} to a new click event to open link {discord} #make it clickable and run the link arg1
        send component {_t} to player #send it to player
 
Last edited:
Status
Not open for further replies.