Advertisement
Guest User

Warps [Skript] [2.1]

a guest
Feb 23rd, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. command /warp <string> [<string>] [<string>]:
  2. description: Create, delete, change and use warps!
  3. usage: &cJung &8» &7/warp help
  4. trigger:
  5. if arg-1 is "help":
  6. send "&8» &7Warp Help &8«"
  7. send " "
  8. send "&7List all warps &8» &c/warps"
  9. send "&7Create a warp &8» &c/warp create <name>"
  10. send "&7Delete a warp &8» &c/warp delete <name>"
  11. send "&7Rename a warp &8» &c/warp rename <name> <newname>"
  12. send "&7Change a warp &8» &c/warp set <name>"
  13. send "&7Teleport to a warp &8» &c/warp <name>"
  14. send " "
  15. send "&8» &7Warp Help &8«"
  16. else if arg-1 is "create":
  17. if arg-2 is set:
  18. if arg-3 is not set:
  19. if {warp::%arg-2%} is not set:
  20. if player has permission "skript.warp.create":
  21. set {warp::%arg-2%} to player's location
  22. add arg-2 to {warps::*}
  23. send "&cJung &8» &7Created the warp &c%arg-2% &7at your location!"
  24. else:
  25. send "&cJung &8» &7You do not have the permission &cskript.warp.create&7!"
  26. else:
  27. send "&cJung &8» &7That warp already exists!"
  28. else:
  29. send "&cJung &8» &7/warp help"
  30. else:
  31. send "&cJung &8» &7/warp help"
  32. else if arg-1 is "delete":
  33. if arg-2 is set:
  34. if arg-3 is not set:
  35. if {warp::%arg-2%} is set:
  36. if player has permission "skript.warn.delete":
  37. delete {warp::%arg-2%}
  38. remove arg-2 from {warps::*}
  39. send "&cJung &8» &7Delete the warp &c%arg-2%&7!"
  40. else:
  41. send "&cJung &8» &7You do not have the permission &cskript.warp.delete&7!"
  42. else:
  43. send "&cJung &8» &7That warp does not exist!"
  44. else:
  45. send "&cJung &8» &7/warp help"
  46. else:
  47. send "&cJung &8» &7/warp help"
  48. else if arg-1 is "rename":
  49. if arg-2 is set:
  50. if arg-3 is set:
  51. if {warp::%arg-2%} is set:
  52. if player has permission "skript.warp.rename":
  53. set {warp::%arg-3%} to {warp::%arg-2%}
  54. delete {warp::%arg-2%}
  55. remove arg-2 from {warps::*}
  56. add arg-3 to {warps::*}
  57. else:
  58. send "&cJung &8» &7You do not have the permission &cskript.warp.rename&7!"
  59. send "&cJung &8» &7Renamed the warp &c%arg-2% &7to &c%arg-3%&7!"
  60. else:
  61. send "&cJung &8» &7That warp does not exist!"
  62. else:
  63. send "&cJung &8» &7/warp help"
  64. else:
  65. send "&cJung &8» &7/warp help"
  66. else if arg-1 is "set":
  67. if arg-2 is set:
  68. if arg-3 is not set:
  69. if {warp::%arg-2%} is set:
  70. if player has permission "skript.warp.set":
  71. set {warp::%arg-2%} to player's location
  72. send "&cJung &8» &7Set the warp &c%arg-2% &7to your location!"
  73. else:
  74. send "&cJung &8» &7You do not have the permission &cskript.warp.set&7!"
  75. else:
  76. send "&cJung &8» &7That warp does not exist!"
  77. else:
  78. send "&cJung &8» &7/warp help"
  79. else:
  80. send "&cJung &8» &7/warp help"
  81. else if arg-1 is not set:
  82. send "&cJung &8» &7/warp help"
  83. else:
  84. player command "/warp warp %arg-1%"
  85.  
  86.  
  87. command /warps:
  88. description: List all warps!
  89. usage: &cJung &8» &7/warps
  90. trigger:
  91. send "&cJung &8» &7All warps: &c%{warps::*}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement