Advertisement
Zeldaboy111

Skript Tutorial #31 Troll GUI

Oct 18th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. on enable:
  2. set {TrollTitle} to "&4<&cTroll&4>"
  3. set {TrollPermissionMessage} to " &4Je hebt &convoldoende rechten &4om deze command uit te voeren."
  4.  
  5. command /troll [<offline player>] [<text>]:
  6. trigger:
  7. if player has permission "troll.*":
  8. if arg 1 is set:
  9. if arg 2 is not set:
  10. execute console command "/ctrollpage %player% %arg 1% 1"
  11. stop
  12. else:
  13. send "%{TrollTitle}% Je hebt te veel argumenten."
  14. stop
  15. else:
  16. send "%{TrollTitle}% Je moet nog een &cspeler &4opgeven die je wilt trollen."
  17. stop
  18. else:
  19. send "%{TrollTitle}%%{TrollPermissionMessage}%"
  20. stop
  21.  
  22. command /ctrollpage <offline player> <offline player> <text>:
  23. executable by: console
  24. trigger:
  25. if arg 3 is "1":
  26. wait 3 ticks
  27. open chest with 4 rows named "&c&lTrollmenu %arg 2%" to arg 1
  28.  
  29. format slot 13 of arg 1 with a black wool named "&4Blindness troll" with lore "&7Geeft %arg 2% een blindness effect voor het aantal ingevoerde secondes" to close
  30.  
  31. format slot 31 of arg 1 with a barrier named "&4Sluit het menu" with lore "&7Sluit het troll menu van %arg 2%" to close
  32. format slot 32 of arg 1 with a arrow named "&4Volgende pagina" with lore "&7Ga naar de volgende pagina met trolls." to close then run [execute console command "/ctrollpage %arg 1% %arg 2% 2"]
  33. stop
  34. if arg 3 is "2":
  35. wait 3 ticks
  36. open chest with 4 rows named "&c&lTrollmenu %arg 2%" to arg 1
  37.  
  38. format slot 30 of arg 1 with a arrow named "&4Vorige pagina" with lore "&7Ga naar de vorige pagina uit het troll menu" to close then run [execute console command "/ctrollpage %arg 1% %arg 2% 1"]
  39. format slot 31 of arg 1 with a barrier named "&4Sluit het menu" with lore "&7Sluit het troll menu van %arg 2%" to close
  40. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement