Homes GUI teleport

  • 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.
When i click the slot, it sends the name of the homes i have set. I have 4 homes set, and it sends all them in chat. It does not send <none>.
55329652c4a540383697cf6614468fca.png

https://gyazo.com/55329652c4a540383697cf6614468fca
 
Ive tried that, and it doesnt work. I made a command to teleport the player, and it does work. So it has to do with something with the GUI part. Im not sure about that?


Code:
command /test <text>:
    trigger:
        teleport player to {LOC::HOME::%player%::%arg-1%}
 
Code:
[LIST=1]
[*]on inventory click:
[*]    if name of event-slot is "&c&lHomes(s)":
[*]        cancel event
[*]        set {_var} to name of event-slot
[*]        teleport player to location at {LOC::HOME::%player%::%unformatted name of event-item%}
[*]        broadcast "%{_var}%"
[/LIST]
 
Status
Not open for further replies.