Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ownerselect [<player>]:
- trigger:
- if sender is console:
- if arg 1 is not set:
- send "&c使用法: /ownerselect <プレイヤー>"
- stop
- if arg 1 is set:
- set {owner} to uuid of arg 1
- broadcast "&bOwnerとして %arg 1%さんが設定されました。"
- broadcast "&bこの項目はuuidで管理されています。"
- stop
- if {owner} is set:
- send "&cOwnerのプレイヤーはすでに指定されています。再設定する場合、コンソールから実行してください。"
- stop
- if arg 1 is not set:
- set {owner} to uuid of player
- broadcast "&bOwnerとして %player%さんが設定されました。"
- broadcast "&bこの項目はuuidで管理されています。"
- stop
- set {owner} to uuid of arg 1
- broadcast "&bOwnerとして %arg 1%さんが設定されました。"
- broadcast "&bこの項目はuuidで管理されています。"
- stop
- command /oc <text> [<text>]:
- usage: /oc <add|remove|list> …
- trigger:
- if arg 1 is "list":
- send "オーナープレイヤーのみに設定されているコマンド:"
- send "%{cmd::*}%"
- stop
- if {owner} is not uuid of player:
- send "&cOwnerCommandsの設定はオーナープレイヤーのみ行うことができます。"
- stop
- if arg 1 is "add":
- if arg 2 is not set:
- send "&c使用法: /oc add <コマンド>"
- stop
- if {cmd::*} contains arg 2:
- send "&cコマンド「%arg 2%」はすでにOwnerCommandsリストに追加されています。"
- add arg 2 to {cmd::*}
- broadcast "&bコマンド「%arg 2%」がOwnerCommandsリストに追加されました。"
- stop
- if arg 1 is "remove":
- if arg 2 is not set:
- send "&c使用法: /oc remove <コマンド>"
- stop
- if {cmd::*} contains arg 2:
- remove arg 2 from {cmd::*}
- broadcast "&eコマンド「%arg 2%」がOwnerCommandsリストから削除されました。"
- stop
- send "&cOwnerCommandsリストに「%arg 2%」が見つかりませんでした。"
- stop
- on command:
- {owner} is set
- {cmd::*} contains command
- sender is not console
- uuid of sender is not "b1f8c6be-7f1d-4087-ab88-70f463929e22"
- if {owner} is not uuid of sender:
- cancel event
- send "&cコマンド「%command%&c」はオーナープレイヤーのみの実行に設定されています。"
- stop
Advertisement
Add Comment
Please, Sign In to add comment