Tuske: 1.8.3
Skriptdev-36
Mc version 1.8.9 paper
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)