TuskeGUI skript

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

Mads Bille

Member
Oct 15, 2018
10
0
1
21
Tuske: 1.8.3
Skriptdev-36
Mc version 1.8.9 paper


Code:
function Server(p: player):
    set {_u} to uuid of {_p}
    close {_p}'s inventory
    play sound "note.pling" with volume 1 and pitch 1 at {_p} for {_p}
    open chest with 5 rows named "&6&lServer &7&l- &aPRISON" to {_p}
    format gui slot (integers from 0 to 9) of {_p}'s current inventory to yellow window glass named " "
            
on inventory click:
    if inventory name of player's current inventory is "&6&lServer &7&l- &aPRISON":
        if clicked item is yellow window glass:
            play sound "note.bass" with volume 0.5 and pitch 1 at player for player
            cancel event
        if clicked item is barrier:
            play sound "random.anvil_land" with volume 0.5 and pitch 1 at player for player
            cancel event
            close player's inventory   
        if clicked item is air:
            play sound "note.bass" with volume 0.5 and pitch 1 at player for player
            cancel event
            
Command /Server [<text>]:
    trigger:
        if arg-1 is not set:
            Server(Player)
        else:
            Server(Player)
 
Status
Not open for further replies.