sora200507

Untitled

Mar 23rd, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. command /setwarp <text>:
  2. permission:sky.warp
  3. trigger:
  4. if {%arg%::warps} is set:
  5. message "&b%arg%という名前のワープはもう存在しています"
  6. stop
  7. else:
  8. message "&bワープ名%arg%を作成しています"
  9. set {%arg%::warps} to location of player
  10. message "&b作成しました"
  11. command /warp <text> [<player>]:
  12. permission:sky.warp
  13. trigger:
  14. if {%arg-1%::warps} is not set:
  15. message "&bワープ名%arg-1%は存在しません"
  16. stop
  17. else:
  18. if arg-2 is set:
  19. message "&bワープ名%arg-1%へ%player%によってテレポートされます.." to player-arg
  20. message "&bワープ名%arg-1%へ%arg-2%をテレポートさせます" to player
  21. wait 1 seconds
  22. teleport the player-arg to {%arg-1%::warps}
  23. message "&bテレポートしました" to player-arg
  24. stop
  25. else if arg-2 is not set:
  26. message "&bワープ名%arg-1%にテレポートします.."
  27. wait 1 seconds
  28. teleport the player to {%arg-1%::warps}
  29. message "&bテレポートしました"
  30. stop
  31. command /delwarp <text>:
  32. permission:sky.warp
  33. executable by:console
  34. trigger:
  35. if {%arg%::warps} is not set:
  36. message "&bワープ名%arg%は存在しません"
  37. stop
  38. else:
  39. message "&bワープ名%arg%を削除します..."
  40. wait 1 seconds
  41. clear {%arg%::warps}
  42. message "&b削除しました"
  43. command /consolewarp <text> <player>:
  44. permission:sky.warp
  45. trigger:
  46. if {%arg-1%::warps} is not set:
  47. message "&bワープ名%arg-1%は存在しません"
  48. stop
  49. else:
  50. if arg-2 is set:
  51. message "&bワープ名%arg-1%へ&cコンソール&bによってテレポートされます.." to player-arg
  52. message "&bワープ名%arg-1%へ%arg-2%をテレポートさせます" to player
  53. wait 1 seconds
  54. teleport the player-arg to {%arg-1%::warps}
  55. message "&bテレポートしました" to player-arg
  56. stop
Advertisement
Add Comment
Please, Sign In to add comment