7mm

【Skript】WarpPoint

7mm
Feb 14th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. #===============================================
  2. #/warpコマンド
  3. #===============================================
  4. command /warp <number>:
  5. usage: /warp <1|2|3> ... 設定したワープポイントへワープします
  6. trigger:
  7. if arg 1 is 1:
  8. if {%player%-warppoint-1} is not set:
  9. message "&a&lワープポイント1&eがセットされていません!"
  10. stop
  11. teleport player to {%player%-warppoint-1}
  12. message "&a&lワープポイント1&eへテレポートしました"
  13. else if arg 1 is 2:
  14. if {%player%-warppoint-2} is not set:
  15. message "&a&lワープポイント2&eがセットされていません!"
  16. stop
  17. teleport player to {%player%-warppoint-2}
  18. message "&a&lワープポイント2&eへテレポートしました"
  19. else if arg 1 is 3:
  20. if {%player%-warppoint-3} is not set:
  21. message "&a&lワープポイント3&eがセットされていません!"
  22. stop
  23. teleport player to {%player%-warppoint-3}
  24. message "&a&lワープポイント3&eへテレポートしました"
  25.  
  26. #===============================================
  27. #ジャンプ地点登録
  28. #===============================================
  29. on rightclick on a piston:1:
  30. play sound "block.note.pling" at player
  31. open chest with 1 rows named "&9&lSave WarpPoint" to player
  32. format slot 2 of player with wool:2 named "&e&lWP1にセーブ" to run "swp %player% 1"
  33. format slot 4 of player with wool:3 named "&e&lWP2にセーブ" to run "swp %player% 2"
  34. format slot 6 of player with wool:4 named "&e&lWP3にセーブ" to run "swp %player% 3"
  35.  
  36. #===============================================
  37. #/setwarppointコマンド
  38. #===============================================
  39. command /setwarppoint <offline player> <number>:
  40. permission: skript.admin
  41. aliases: /swp
  42. trigger:
  43. if arg 2 is 1:
  44. set {%arg 1%-warppoint-1} to location of arg 1
  45. message "&6&lワープポイント1&eにセットしました" to arg 1
  46. else if arg 2 is 2:
  47. set {%arg 1%-warppoint-2} to location of arg 1
  48. message "&6&lワープポイント2&eにセットしました" to arg 1
  49. else if arg 2 is 3:
  50. set {%arg 1%-warppoint-3} to location of arg 1
  51. message "&6&lワープポイント3&eにセットしました" to arg 1
Advertisement
Add Comment
Please, Sign In to add comment