Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /warp [<text>] [<player>]:
- trigger:
- if arg 1 is not set:
- send "&c使用法:/warp <ワープポイント> [プレイヤー]"
- send ""
- send "&bプレイヤーを指定した場所にワープします。"
- stop
- if {warps::*} does not contain arg 1:
- send "&cワープ名「&a%arg 1%&c」は存在しません。"
- send "&d/warplist &cコマンドを使って、ワープポイントの一覧を表示できます。"
- stop
- if arg 2 is not set:
- if {warp.%arg 1%.permission.me} is set:
- if sender does not have permission {warp.%arg 1%.permission.me}:
- send "&c「&a%arg 1%&c」にワープするには、権限「&a%{warp.%arg 1%.permission.me}%&c」が必要です。"
- stop
- teleport player to {warp.%arg 1%.position}
- send "&b「&a%arg 1%&b」&7(%{warp.%arg 1%.position}%)&bにワープしました。"
- stop
- if arg 2 is set:
- if {warp.%arg 1%.permission.other} is set:
- if sender does not have permission {warp.%arg 1%.permission.other}:
- send "&c「&a%arg 1%&c」にプレイヤーをワープするには、権限「&a%{warp.%arg 1%.permission.other}%&c」が必要です。"
- stop
- teleport arg 2 to {warp.%arg 1%.position}
- send "&b「&a%arg 1%&b」&7(%{warp.%arg 1%.position}%)&bに「&a%arg 2%&b」をワープしました。"
- if arg 2 has permission "warp.report":
- send "&b「&a%sender%」&bがあなたを「&a%arg 1%&b」&7(%{warp.%arg 1%.position}%)&bにワープしました。" to arg 2
- stop
- command /setwarp [<text>] [<text>] [<text>]:
- trigger:
- if sender is not player:
- send "&cこのコマンドはプレイヤーからのみ実行可能です。"
- stop
- if sender does not have permission "warp.set":
- send "&cワープポイントをセットするには、権限「&awarp.set&c」が必要です。"
- stop
- if arg 1 is not set:
- send "&c使用法:/setwarp <ワープ名> [権限1] [権限2]"
- send ""
- send "&bワープポイントをセットします。"
- send "&a権限1&bには、自分をワープする際に必要な権限を指定してください。"
- send "&a権限2&bには、他人をワープする際に必要な権限を指定してください。"
- send "&e権限に「&anone&e」を指定すると、権限が不要になります。"
- stop
- if arg 1 is set:
- if {warps::*} contains arg 1:
- send "&cワープポイント「&a%arg 1%&c」はすでに使われています。"
- if sender has permission "warp.delete":
- send "&c名前を変更するか、&d/delwarp &e%arg 1%&cを実行してワープポイントを削除してください。"
- else:
- send "&c名前を変更して、再度お試しください。"
- stop
- add arg 1 to {warps::*}
- set {warp.%arg 1%.position} to player's location
- send "&bワープポイント「&a%arg 1%&b」を作成しました。"
- send "&b場所:&a%{warp.%arg 1%.position}%"
- if arg 2 is set:
- if arg 2 is not "none":
- set {warp.%arg 1%.permission.me} to arg 2
- send "&b自分をワープする際に必要な権限:&a%arg 2%"
- if arg 3 is set:
- if arg 3 is not "none":
- set {warp.%arg 1%.permission.other} to arg 3
- send "&b他人をワープする際に必要な権限:&a%arg 3%"
- set {warp.%arg 1%.setby} to sender's name
- command /delwarp [<text>]:
- trigger:
- if sender does not have permission "warp.delwarp":
- send "&cワープポイントを削除するには、権限「&awarp.delwarp&c」が必要です。"
- stop
- if arg 1 is not set:
- send "&c使用法:/delwarp <ワープ名>"
- send ""
- send "&bワープ地点を削除します。"
- send "&eこの操作を元に戻すことはできません。"
- stop
- if {warps::*} does not contain arg 1:
- send "&cワープ名「&a%arg 1%&c」は存在しません。"
- stop
- remove arg 1 from {warps::*}
- delete {warp.%arg 1%.permission.me}
- delete {warp.%arg 1%.permission.other}
- delete {warp.%arg 1%.setby}
- delete {warp.%arg 1%.position}
- send "&eワープ名「&a%arg 1%&e」を削除しました。"
- command /warplist:
- trigger:
- if sender does not have permission "warp.list":
- send "&cワープポイントのリストを確認するには、権限「&awarp.list&c」が必要です。"
- stop
- if amount of {warps::*} is 0:
- send "&eワープポイントがセットされていません。"
- stop
- if amount of {warps::*} is less than or equal to 10:
- loop {warps::*}:
- add 1 to {_count}
- send "&a%{_count}%&7)&e %loop-value%&7(%{warp.%loop-value%.position}%)"
- stop
- set {_msg} to "Warps(%amount of {warps::*}%):"
- loop {warps::*}:
- if {_count} is not set:
- set {_msg} to "%{_msg}% &a%loop-value%"
- add 1 to {_count}
- else:
- set {_msg} to "%{_msg}%&r, &a%loop-value%"
- send "%{_msg}%"
- command /warpinfo [<text>]:
- trigger:
- if sender does not have permission "warp.info":
- send "&cワープポイントの情報を確認するには、権限「&awarp.info&c」が必要です。"
- stop
- if arg 1 is not set:
- send "&c使用法:/warpinfo <ワープ名>"
- send ""
- send "&b対象のワープ地点の場所や必要な権限などの情報を確認します。"
- stop
- if {warps::*} does not contain arg 1:
- send "&cワープ名「&a%arg 1%&c」は存在しません。"
- stop
- send "&bワープ名:&e%arg 1%"
- send "&b場所:&e%{warp.%arg 1%.position}%"
- if {warp.%arg 1%.permission.me} is set:
- send "&b自分をワープする際に必要な権限:&e%{warp.%arg 1%.permission.me}%"
- else:
- send "&b自分をワープする際に権限は不要です。"
- if {warp.%arg 1%.permission.other} is set:
- send "&b他人をワープする際に必要な権限:&e%{warp.%arg 1%.permission.other}%"
- else:
- send "&b他人をワープする際に権限は不要です。"
- send "&bワープ地点設定者:&e%{warp.%arg 1%.setby}%"
Advertisement
Add Comment
Please, Sign In to add comment