kama6012

GUI test

Feb 15th, 2022 (edited)
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. on skript load:
  2. create a gui with id "LobbySelector" with virtual chest with 4 rows named "&4Lobby Selector":
  3. make gui slot 2 with diamond sword named "PVP":
  4. execute player command "/me PVP" #'on skript load' event doesn't have a 'player', but it will recognize it as it does have.
  5. make gui slot 4 with grass named "SkyBlock":
  6. execute player command "/me SkyBlock"
  7.  
  8. command /lobby:
  9. trigger:
  10. open gui "LobbySelector" to player
  11.  
  12. command /shop [<integer>] [<text>]:
  13. trigger:
  14. if arg-2 is "open":
  15. broadcast "open %arg-1%"
  16. else if arg-2 is "set":
  17. broadcast "set %arg-1%"
  18. broadcast "%arg-1%, %arg-2%"
  19.  
  20.  
Add Comment
Please, Sign In to add comment