Guest User

Untitled

a guest
Jun 3rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. options:
  2. p: &8[&bSv-Hosting&8]
  3.  
  4.  
  5. command /setwarp [<text>]:
  6. permission: setwarp.permission
  7. trigger:
  8. if arg-1 is set:
  9. if {warps::*} doesn't contain arg-1:
  10. add arg-1 to {warps::*}
  11. set {location.warps.%arg-1%} to position of player
  12. send "{@p} &cDu har oprettet warpet: &r%arg-1% &cpå: &r%location at player%"
  13. stop
  14. else:
  15. send "{@p} &cDette warp findes allerede."
  16. else:
  17. send "{@p} &cSkriv noget." to player
  18.  
  19. command /delwarp [<text>]:
  20. permission: delwarp.permission
  21. trigger:
  22. if arg-1 is set:
  23. if {location.warps.%arg-1%} is set:
  24. remove arg-1 from {warps::*}
  25. delete {location.warps.%arg-1%}
  26. send "{@p} &cFjernede warpet: &r%arg-1%"
  27. else:
  28. send "{@p} &cSkriv venligst et gyldigt warp!"
  29. command /warps:
  30. trigger:
  31. open chest with 3 rows named "&bWARPS" to player
  32. set {_warps} to 0
  33. loop {warps::*}:
  34. format slot {_warps} of player with compass named "%loop-value%" to close then run [execute player command "warpto %loop-value%"]
  35. add 1 to {_warps}
  36.  
  37.  
  38. command /warpto [<text>]:
  39. trigger:
  40. teleport player to {location.warps.%arg-1%}
  41. send "{@p} &cDu har teleported til: &r %arg-1%, &r%{location.warps.%arg-1%}%"
  42.  
  43. command /removeallwarps:
  44. permission: removallwarps.admin
  45. trigger:
  46. delete {warps::*}
Advertisement
Add Comment
Please, Sign In to add comment