Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Protector version:1.0
- options:
- prefix: &1[&9Protector&1]&r
- on join:
- if {tnt.%player%} is not set:
- set {tnt.%player%} to false
- else:
- stop
- command /protector [<text>] [<text>] [<player>]:
- permission: minecraft.command.op
- permission message: &c権限がありません。
- aliases: /pr
- trigger:
- if arg 1 is not set:
- send "&6&l&m------------------------------------------"
- send "&b/protector help : ヘルプを表示します。"
- send "&b/protector add <権限> <名前> : 指定したプレイヤーに権限を付与します。"
- send "&b/protector remove <権限> <名前> : 指定したプレイヤーから権限を剥奪します。"
- send "&b/protector check <名前> : プレイヤーに付与されている権限を確認します。"
- send "&b/protector list : 権限の一覧を表示します。"
- send "&6&l&m------------------------------------------"
- stop
- if arg 1 is "help":
- send "&6&l&m------------------------------------------"
- send "&b/protector help : ヘルプを表示します。"
- send "&b/protector add <権限> <名前> : 指定したプレイヤーに権限を付与します。"
- send "&b/protector remove <権限> <名前> : 指定したプレイヤーから権限を剥奪します。"
- send "&b/protector check <名前> : プレイヤーに付与されている権限を確認します。"
- send "&b/protector list : 権限の一覧を表示します。"
- send "&6&l&m------------------------------------------"
- stop
- if arg 1 is "add":
- if arg 2 is not set:
- send "&c権限を指定してください。"
- stop
- if arg 2 is "tnt":
- if arg 3 is not set:
- if {tnt.%player%} is false:
- set {tnt.%player%} to true
- send "{@prefix} &a%player%さんのTNT設置を許可しました。"
- stop
- if {tnt.%player%} is true:
- send "{@prefix} &c%player%さんは既にTNT設置を許可されています。"
- if arg 3 is set:
- if {tnt.%arg 3%} is false:
- set {tnt.%arg 3%} to true
- send "{@prefix} &3%arg 3%さんのTNT設置を許可しました。"
- stop
- if {tnt.%arg 3%} is true:
- send "{@prefix} &c%arg 3%さんは既にTNT設置許可されています。"
- stop
- if arg 1 is "remove":
- if arg 2 is not set:
- send "&c権限を指定してください。"
- stop
- if arg 2 is "tnt":
- if arg 3 is not set:
- if {tnt.%player%} is true:
- set {tnt.%player%} to false
- send "{@prefix} &3%player%さんのTNT設置を禁止しました。"
- stop
- if {tnt.%player%} is false:
- send "{@prefix} &c%player%さんは既にTNT設置を禁止されています。"
- stop
- if arg 3 is set:
- if {tnt.%arg 3%} is true:
- set {tnt.%arg 3%} to false
- send "{@prefix} &3%arg 3%さんのTNT設置を禁止しました。"
- stop
- if {tnt.%arg 3%} is false:
- send "{@prefix} &c%arg 3%さんは既にTNT設置禁止されています。"
- stop
- if arg 1 is "check":
- if arg 2 is not set:
- send "&6---------------- %player% ----------------"
- if {tnt.%player%} is false:
- send "&bTNTの設置 : &cfalse
- if {tnt.%player%} is true:
- send "&bTNTの設置 : &atrue
- send "&6------------------------------------------"
- stop
- if arg 2 is set:
- send "&6---------------- %arg 2% ----------------"
- if {tnt.%arg 2%} is false:
- send "&bTNTの設置 : &cfalse
- if {tnt.%arg 2%} is true:
- send "&bTNTの設置 : &atrue
- send "&6------------------------------------------"
- stop
- else:
- send "無効なテキストです"
- stop
- on place of tnt:
- if {tnt.%player%} is true:
- stop
- if {tnt.%player%} is false:
- send "{@prefix} &cあなたはTNTを設置することを許可されていません!"
- cancel event
- stop
- else:
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement