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

Inferno

Member
Feb 2, 2017
20
0
0
In Skript version 2.2-dev 29 players can not open links. Was this changed since the previous versions?

code_language.skript:
send "https://anexampleurl.com"

This would not be clickable. If it was, how could I make it clickable?
 
Do you by chance use jsonsk? Using that for my chat is what made links not work for me.
 
hey @Wynnevir i'm using json.sk (i changed it a little) but it still does the same thing. and the functions are the same.
do you know how i can make the link be underlined (&f&n), so it would look like this

&f&nhttps://google.com
 
@Pykaxe It should be something like this
code_language.skript:
json("@a","&f&nhttps://google.com ||url:https://google.com")
That will make this one link clickable.
 
@Wynnevir I want to replace URL's in %message% with &f&n(url)

not just send a message with "&f&nhttps://google.com"

do you know what i mean
 
You wouldn't be able to just replace any url typed into chat, there's no way to check if the text entered is a url. the way json works is by defining the text that comes before it as the place to click for the url that comes after "url:".
[doublepost=1501651750,1501651442][/doublepost]Try this maybe? Just trying to think of some work arounds
code_language.skript:
on chat:
    set {_message} to the message
    if {_message} contains "https":
        cancel event
        send "&f&n%{_message}%"
 
Do you by chance use jsonsk? Using that for my chat is what made links not work for me.
I tried using jsonsk before posting this and instead of just sending the message in json it sent the whole json formatting and removed it afterward. I do use essentials and players have access to the permission (and I am opped). It is just the messages sent by Skript.
 
Status
Not open for further replies.