kjfalkeiae

Untitled

May 6th, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.94 KB | None | 0 0
  1. command /warp [<text>] [<player>]:
  2. trigger:
  3. if arg 1 is not set:
  4. send "&c使用法:/warp <ワープポイント> [プレイヤー]"
  5. send ""
  6. send "&bプレイヤーを指定した場所にワープします。"
  7. stop
  8. if {warps::*} does not contain arg 1:
  9. send "&cワープ名「&a%arg 1%&c」は存在しません。"
  10. send "&d/warplist &cコマンドを使って、ワープポイントの一覧を表示できます。"
  11. stop
  12. if arg 2 is not set:
  13. if {warp.%arg 1%.permission.me} is set:
  14. if sender does not have permission {warp.%arg 1%.permission.me}:
  15. send "&c「&a%arg 1%&c」にワープするには、権限「&a%{warp.%arg 1%.permission.me}%&c」が必要です。"
  16. stop
  17. teleport player to {warp.%arg 1%.position}
  18. send "&b「&a%arg 1%&b」&7(%{warp.%arg 1%.position}%)&bにワープしました。"
  19. stop
  20. if arg 2 is set:
  21. if {warp.%arg 1%.permission.other} is set:
  22. if sender does not have permission {warp.%arg 1%.permission.other}:
  23. send "&c「&a%arg 1%&c」にプレイヤーをワープするには、権限「&a%{warp.%arg 1%.permission.other}%&c」が必要です。"
  24. stop
  25. teleport arg 2 to {warp.%arg 1%.position}
  26. send "&b「&a%arg 1%&b」&7(%{warp.%arg 1%.position}%)&bに「&a%arg 2%&b」をワープしました。"
  27. if arg 2 has permission "warp.report":
  28. send "&b「&a%sender%」&bがあなたを「&a%arg 1%&b」&7(%{warp.%arg 1%.position}%)&bにワープしました。" to arg 2
  29. stop
  30.  
  31. command /setwarp [<text>] [<text>] [<text>]:
  32. trigger:
  33. if sender is not player:
  34. send "&cこのコマンドはプレイヤーからのみ実行可能です。"
  35. stop
  36. if sender does not have permission "warp.set":
  37. send "&cワープポイントをセットするには、権限「&awarp.set&c」が必要です。"
  38. stop
  39. if arg 1 is not set:
  40. send "&c使用法:/setwarp <ワープ名> [権限1] [権限2]"
  41. send ""
  42. send "&bワープポイントをセットします。"
  43. send "&a権限1&bには、自分をワープする際に必要な権限を指定してください。"
  44. send "&a権限2&bには、他人をワープする際に必要な権限を指定してください。"
  45. send "&e権限に「&anone&e」を指定すると、権限が不要になります。"
  46. stop
  47. if arg 1 is set:
  48. if {warps::*} contains arg 1:
  49. send "&cワープポイント「&a%arg 1%&c」はすでに使われています。"
  50. if sender has permission "warp.delete":
  51. send "&c名前を変更するか、&d/delwarp &e%arg 1%&cを実行してワープポイントを削除してください。"
  52. else:
  53. send "&c名前を変更して、再度お試しください。"
  54. stop
  55. add arg 1 to {warps::*}
  56. set {warp.%arg 1%.position} to player's location
  57. send "&bワープポイント「&a%arg 1%&b」を作成しました。"
  58. send "&b場所:&a%{warp.%arg 1%.position}%"
  59. if arg 2 is set:
  60. if arg 2 is not "none":
  61. set {warp.%arg 1%.permission.me} to arg 2
  62. send "&b自分をワープする際に必要な権限:&a%arg 2%"
  63. if arg 3 is set:
  64. if arg 3 is not "none":
  65. set {warp.%arg 1%.permission.other} to arg 3
  66. send "&b他人をワープする際に必要な権限:&a%arg 3%"
  67. set {warp.%arg 1%.setby} to sender's name
  68.  
  69. command /delwarp [<text>]:
  70. trigger:
  71. if sender does not have permission "warp.delwarp":
  72. send "&cワープポイントを削除するには、権限「&awarp.delwarp&c」が必要です。"
  73. stop
  74. if arg 1 is not set:
  75. send "&c使用法:/delwarp <ワープ名>"
  76. send ""
  77. send "&bワープ地点を削除します。"
  78. send "&eこの操作を元に戻すことはできません。"
  79. stop
  80. if {warps::*} does not contain arg 1:
  81. send "&cワープ名「&a%arg 1%&c」は存在しません。"
  82. stop
  83. remove arg 1 from {warps::*}
  84. delete {warp.%arg 1%.permission.me}
  85. delete {warp.%arg 1%.permission.other}
  86. delete {warp.%arg 1%.setby}
  87. delete {warp.%arg 1%.position}
  88. send "&eワープ名「&a%arg 1%&e」を削除しました。"
  89.  
  90. command /warplist:
  91. trigger:
  92. if sender does not have permission "warp.list":
  93. send "&cワープポイントのリストを確認するには、権限「&awarp.list&c」が必要です。"
  94. stop
  95. if amount of {warps::*} is 0:
  96. send "&eワープポイントがセットされていません。"
  97. stop
  98. if amount of {warps::*} is less than or equal to 10:
  99. loop {warps::*}:
  100. add 1 to {_count}
  101. send "&a%{_count}%&7)&e %loop-value%&7(%{warp.%loop-value%.position}%)"
  102. stop
  103. set {_msg} to "Warps(%amount of {warps::*}%):"
  104. loop {warps::*}:
  105. if {_count} is not set:
  106. set {_msg} to "%{_msg}% &a%loop-value%"
  107. add 1 to {_count}
  108. else:
  109. set {_msg} to "%{_msg}%&r, &a%loop-value%"
  110. send "%{_msg}%"
  111.  
  112. command /warpinfo [<text>]:
  113. trigger:
  114. if sender does not have permission "warp.info":
  115. send "&cワープポイントの情報を確認するには、権限「&awarp.info&c」が必要です。"
  116. stop
  117. if arg 1 is not set:
  118. send "&c使用法:/warpinfo <ワープ名>"
  119. send ""
  120. send "&b対象のワープ地点の場所や必要な権限などの情報を確認します。"
  121. stop
  122. if {warps::*} does not contain arg 1:
  123. send "&cワープ名「&a%arg 1%&c」は存在しません。"
  124. stop
  125. send "&bワープ名:&e%arg 1%"
  126. send "&b場所:&e%{warp.%arg 1%.position}%"
  127. if {warp.%arg 1%.permission.me} is set:
  128. send "&b自分をワープする際に必要な権限:&e%{warp.%arg 1%.permission.me}%"
  129. else:
  130. send "&b自分をワープする際に権限は不要です。"
  131. if {warp.%arg 1%.permission.other} is set:
  132. send "&b他人をワープする際に必要な権限:&e%{warp.%arg 1%.permission.other}%"
  133. else:
  134. send "&b他人をワープする際に権限は不要です。"
  135. send "&bワープ地点設定者:&e%{warp.%arg 1%.setby}%"
Advertisement
Add Comment
Please, Sign In to add comment