Zeldaboy111

Skript #132

Mar 25th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. on enable:
  2. set {cw::title} to "&8[&eCraftWars&8]&7" #Default: "&8[&eCraftWars&8]&7"
  3.  
  4.  
  5. command /craftwars [<text>] [<text>] [<text>]:
  6. aliases: cw
  7. trigger:
  8. if player has permission "craftwars.*":
  9. if arg 1 is "help":
  10. if arg 2 is not set:
  11. execute player command "/cw help 1"
  12. stop
  13.  
  14. if arg 2 is "1":
  15. send "&8________[&eCraftWars&8]________"
  16. json("%player%", "&8/craftwars help||ttp:&9Krijg de help pagina||cmd:/cw help")
  17. json("%player%", "&8/craftwars shop create [type]||ttp:&9Maak een shop||sgt:/cw shop create [type]")
  18. json("%player%", "&8/craftwars remove||ttp:&9Remove een shop||cmd:/cw shop remove")
  19. send "&8________[&ePag: 1/1&8]________"
  20. stop
  21.  
  22. if arg 1 is "shop":
  23. if arg 2 is "create":
  24. if arg 3 is "basic":
  25. spawn a villager at location of player
  26. set display name of last spawned villager to "&eBasic shop"
  27.  
  28. add "{NoAI:1}" to nbt of last spawned villager
  29. add "{Invulnerable:1, Silent:1}" to nbt of last spawned villager
  30.  
  31. send "%{cw::title}% Succesvol een &8Basic shop &7gemaakt."
  32. stop
  33.  
  34. if arg 3 is "engineer":
  35. stop
  36.  
  37. if arg 3 is "blueprint":
  38. stop
  39.  
  40. else:
  41. send "%{cw::title}% Dit is geen geldig shop type, de types zijn:%nl%&8Basic, Engineer, Blueprint"
  42. stop
  43.  
  44.  
  45. if arg 2 is "remove":
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. else:
  53. json("%player%", "&7Bedoel je: ||&8%arg 1% create [type]||ttp:&9Maak een shop||sgt:/cw shop create [type]")
  54. json("%player%", "&7Of bedoel je: ||&8%arg 1% remove||ttp:&9Remove een shop||cmd:/cw shop remove")
  55. stop
  56.  
  57. else:
  58. send "%{cw::title}% Dit is geen geldig argument, doe /craftwars help."
  59. stop
  60. #else
Advertisement
Add Comment
Please, Sign In to add comment