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