Book GUI & open a Website

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

Brok3nmind

Active Member
Feb 3, 2017
66
1
8
22
Germany
darkvoid.eu
I have a Book script but i want if someone clicks on the Website button that a website opens
code_language.skript:
command /info:
    trigger:
        set {_book} to a new book
        wait 1 tick
        set {_component} to a new text component with "&0➤ &9&lWebsite"
        wait 1 tick
        add hover event with action SHOW_TEXT with text "&fClick to open the website" to text component {_component}
        wait 1 tick
        add click event with action RUN_COMMAND with execute "/broadcast Hello!" to text component {_component}
        wait 1 tick
        add text component {_component} to book {_book}
        wait 2 tick
        open book {_book}  to player
 
I found this in an example
code_language.skript:
add click event with action OPEN_URL with link "https://forums.skunity.com/threads/skellett.39/" to text component {_component}
 
Status
Not open for further replies.