jaOjaa

Custom Warp

Jun 1st, 2014
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. #Warp Skript by jaOjaa | v.0.3
  2.  
  3. options:
  4. Q: &7[&aCustom&eWarp&7]
  5. PR: warp.oja
  6.  
  7.  
  8. command /warp [<text="help">]:
  9. usage: /warp [text]
  10. trigger:
  11. arg 1 is "list":
  12. message "&b====={@Q}&b====="
  13. loop {allwarps::*}:
  14. send "&8&l►► &a%loop-value%"
  15. stop
  16. arg 1 is set:
  17. if {warp.%arg 1%} is set:
  18. loop {allwarps::*}:
  19. loop-value is equal to arg 1:
  20. teleport player to {warp.%arg 1%}
  21. send "{@Q} &7Teleporting to &b%arg 1%&7!"
  22. stop
  23. else:
  24. execute player command "/warp list"
  25. stop
  26.  
  27. command /setwarp [<text>]:
  28. permission: {@PR}
  29. trigger:
  30. if arg 1 is set:
  31. if player has permission "{@PR}":
  32. set {warp.%arg 1%} to location of the player
  33. add arg 1 to {allwarps::*}
  34. send "{@Q} &7Warp&b %arg 1% &7has been created"
  35. stop
  36. else:
  37. send "{@Q} &cYou do not have access to this command"
  38. stop
  39.  
  40. command /delwarp [<text>]:
  41. usage: /delwarp [warp]
  42. trigger:
  43. if arg 1 is set:
  44. if player has permission "{@PR}":
  45. remove arg 1 from {allwarps::*}
  46. clear {warp.%arg 1%}
  47. send "{@Q} &7Warp&b %arg 1% &7has been deleted"
  48. stop
  49. else:
  50. send "{@Q} &cYou do not have access to this command"
  51. stop
  52.  
  53. command /reloadwarp:
  54. permission: {@PR}
  55. permission message: {@Q} &cYou do not have access to this command
  56. trigger:
  57. make player execute command "/skript reload Warp Skript"
  58. message "{@Q} &6This skript has been reloaded !"
  59. stop
Advertisement
Add Comment
Please, Sign In to add comment