Advertisement
Zeldaboy111

Skript Tutorial #24 en #25

Oct 9th, 2018
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. on load:
  2. set {LobbyCompassName} to "&3LobbyCompass"
  3. set {LobbyCompassLore} to "&kl"
  4.  
  5. on join:
  6. clear player's inventory
  7. wait 1 tick
  8. give player a compass named {LobbyCompassName} with lore {LobbyCompassLore}
  9.  
  10. command /setlobby [<text>]:
  11. trigger:
  12. if player has permission "lobby.set" OR "lobby.*":
  13. if arg 1 is "lobby":
  14. set {LobbyLocation} to location of player
  15. send "&c<&4Lobby&c> Je hebt de locatie van de &4lobby &cgezet op:%nl% &4%{LobbyLocation}%"
  16. else:
  17. send "&c<&4Lobby&c> Je moet nog een lobbynaam invoeren."
  18. else:
  19. send "&c<&4Lobby&c> Je hebt geen permissies om deze command uit te voeren."
  20.  
  21.  
  22. command /clobby [<offline player>] [<text>]:
  23. executable by: console
  24. trigger:
  25. if arg 1 is set:
  26. if arg 2 is "lobby":
  27. teleport arg 1 to {LobbyLocation}
  28.  
  29.  
  30. command /lobby:
  31. trigger:
  32. teleport player to {LobbyLocation}
  33. send "&d<&5Lobby&d> &5Welkom in de lobby!"
  34.  
  35. on rightclick:
  36. if player is holding a compass named {LobbyCompassName} with lore {LobbyCompassLore}:
  37. open chest with 1 rows named "&3LobbyCompass" to player
  38. format slot 0 of player with a grass block named "&5Survival" with lore "&7Survival, alleen of met vrienden!" to close then run [execute console command "/lobby %player% survival"]
  39. format slot 2 of player with a diamond sword named "&5Kingdom" with lore "&7Kingdom, welk kingdom wordt het sterkst?" to close then run [execute console command "/lobby %player% kingdom"]
  40. format slot 4 of player with a diamond block named "&5Creative" with lore "&7Creative, bouw maar los op je plot!" to close then run [execute console command "/lobby %player% creative"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement