Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. command /setwarp [<text>]:
  2. permission: zscmds.setwarp
  3. permission message: &cYou are not allowed to execute this command!
  4. trigger:
  5. if arg 1 is not set:
  6. send "&cUsage: /setwarp <text>"
  7. stop
  8. if arg 1 is set:
  9. if {warps.%arg%} is not set:
  10. set {warps.%arg%} to location of player
  11. add argument to {warps::*}
  12. send "&7You have set the warp &c%arg% at &c%location of player%"
  13. stop
  14. else if {warps.%arg%} is set:
  15. send "&c&l(!) &7The warp &c%arg% &7already exists!"
  16. stop
  17. command /warp [<text>]:
  18. permission: zscmds.warp
  19. permission message: &cYou are not allowed to execute this command!
  20. trigger:
  21. if arg 1 is not set:
  22. send "&7Available warps: &c%{warps::*}%"
  23. stop
  24. if arg 1 is set:
  25. if {warps.%arg%} is not set:
  26. send "&c&l(!) &7That warp doesn't exist!"
  27. stop
  28. else:
  29. set {wait.spawn.teleport.%player%} to true
  30. send "&7Wait &c3&7 seconds without moving!"
  31. wait 3 seconds
  32. if {wait.spawn.teleport.%player%} is true:
  33. send "&7Teleporting you to &c%arg%&7..."
  34. teleport player to {warps.%arg%}
  35. wait 6 ticks
  36. set {wait.spawn.teleport.%player%} to false
  37. else:
  38. send "&c&l(!) &7Teleportation denied because you moved!"
  39. stop
  40. command /warps [<text>]:
  41. permission: zscmds.warp
  42. permission message: &cYou are not allowed to execute this command!
  43. trigger:
  44. send "&7Available warps: &c%{warps::*}%"
  45. stop
  46. command /delwarp [<text>]:
  47. permission: zscmds.delwarp
  48. permission message: &cYou are not allowed to execute this command!
  49. trigger:
  50. if arg 1 is not set:
  51. send "&cUsage: /delwarp <text>"
  52. stop
  53. if arg 1 is set:
  54. if {warps.%arg%} is set:
  55. delete {warps.%arg%}
  56. remove argument from {warps::*}
  57. send "&7You have deleted the warp '&c%arg%&7'."
  58. stop
  59. if {warps.%arg%} is not set:
  60. send "&c&l(!) &7That warp doesn't exist!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement