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 {lava.%player%} to false
- if {dis.%player%} is not set:
- set {dis.%player%} to false
- if {aub.%player%} is not set:
- set {aub.%player%} to false
- if {aub1.%player%} is not set:
- set {aub1.%player%} to false
- if {asp.%player%} is not set:
- set {asp.%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 "&b/protector reset <名前> - 指定したプレイヤーの権限をリセットします。"
- 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 "&b/protector reset <名前> - 指定したプレイヤーの権限をリセットします。"
- 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 2 is "dispenser" or "dis":
- if arg 3 is not set:
- if {dis.%player%} is false:
- set {dis.%player%} to true
- send "{@prefix} &a%player%さんがディスペンサーを設置することを許可しました。"
- stop
- if {dis.%player%} is true:
- send "{@prefix} &c%player%さんは既にディスペンサーを設置することを許可されています。"
- if arg 3 is set:
- if {dis.%arg 3%} is false:
- set {dis.%arg 3%} to true
- send "{@prefix} &a%arg 3%さんがディスペンサーを設置することを許可しました。"
- stop
- if {dis.%arg 3%} is true:
- send "{@prefix} &c%arg 3%さんは既にディスペンサーを設置することを許可されています。"
- stop
- if arg 2 is "autounban" or "aub":
- if arg 3 is not set:
- if {aub.%player%} is false:
- set {aub.%player%} to true
- send "{@prefix} &a%player%さんが自動BAN解除の対象に設定されました。"
- stop
- if {aub.%player%} is true:
- send "{@prefix} &c%player%さんは既に自動BAN解除の対象です。"
- if arg 3 is set:
- if {aub.%arg 3%} is false:
- set {aub.%arg 3%} to true
- send "{@prefix} &a%arg 3%さんが自動BAN解除の対象に設定されました。"
- stop
- if {aub.%arg 3%} is true:
- send "{@prefix} &c%arg 3%さんは既に自動BAN解除の対象です。"
- stop
- if arg 2 is "autospectator" or "asp":
- if arg 3 is not set:
- if {asp.%player%} is false:
- set {asp.%player%} to true
- send "{@prefix} &a%player%さんが自動スペクテイターモードの対象に設定されました。"
- stop
- if {asp.%player%} is true:
- send "{@prefix} &c%player%さんは既に自動スペクテイターモードの対象です。"
- if arg 3 is set:
- if {asp.%arg 3%} is false:
- set {asp.%arg 3%} to true
- send "{@prefix} &a%arg 3%さんが自動スペクテイターモードの対象に設定されました。"
- stop
- if {asp.%arg 3%} is true:
- send "{@prefix} &c%arg 3%さんは既に自動スペクテイターモードの対象です。"
- stop
- if arg 1 is "remove" or "rem":
- 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 2 is "dispenser" or "dis":
- if arg 3 is not set:
- if {dis.%player%} is true:
- set {dis.%player%} to false
- send "{@prefix} &3%player%さんがディスペンサーを設置することを禁止しました。"
- stop
- if {dis.%player%} is false:
- send "{@prefix} &c%player%さんは既にディスペンサーを設置することを禁止されています。"
- stop
- if arg 3 is set:
- if {dis.%arg 3%} is true:
- set {dis.%arg 3%} to false
- send "{@prefix} &3%arg 3%さんがディスペンサーを設置することを禁止しました。"
- stop
- if {dis.%arg 3%} is false:
- send "{@prefix} &c%arg 3%さんは既にディスペンサーを設置することを禁止されています。"
- stop
- if arg 2 is "autounban" or "aub":
- if arg 3 is not set:
- if {aub.%player%} is true:
- set {aub.%player%} to false
- send "{@prefix} &3%player%さんが自動BAN解除の対象から外されました。。"
- stop
- if {aub.%player%} is false:
- send "{@prefix} &c%player%さんは既に自動BAN解除の対象から外されています。"
- stop
- if arg 3 is set:
- if {aub.%arg 3%} is true:
- set {aub.%arg 3%} to false
- send "{@prefix} &3%arg 3%さんが自動BAN解除の対象から外されました。"
- stop
- if {aub.%arg 3%} is false:
- send "{@prefix} &c%arg 3%さんは既に自動BAN解除の対象から外されています。"
- stop
- if arg 2 is "autospectator" or "asp":
- if arg 3 is not set:
- if {asp.%player%} is true:
- set {asp.%player%} to false
- send "{@prefix} &3%player%さんが自動スペクテイターモードの対象から外されました。。"
- stop
- if {asp.%player%} is false:
- send "{@prefix} &c%player%さんは既に自動スペクテイターモードの対象から外されています。"
- stop
- if arg 3 is set:
- if {asp.%arg 3%} is true:
- set {asp.%arg 3%} to false
- send "{@prefix} &3%arg 3%さんが自動スペクテイターモードの対象から外されました。"
- stop
- if {asp.%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"
- if {dis.%player%} is false:
- send "&bディスペンサーの設置 : &cfalse"
- if {dis.%player%} is true:
- send "&bディスペンサーの設置 : &atrue"
- if {aub.%player%} is false:
- send "&b自動BAN解除 : &cfalse"
- if {aub.%player%} is true:
- send "&b自動BAN解除 : &atrue"
- if {asp.%player%} is false:
- send "&b自動スペクテイターモード : &cfalse"
- if {asp.%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"
- if {dis.%arg 2%} is false:
- send "&bディスペンサーの設置 : &cfalse"
- if {dis.%arg 2%} is true:
- send "&bディスペンサーの設置 : &atrue"
- if {aub.%arg 2%} is false:
- send "&b自動BAN解除 : &cfalse"
- if {aub.%arg 2%} is true:
- send "&b自動BAN解除 : &atrue"
- if {asp.%arg 2%} is false:
- send "&b自動スペクテイターモード : &cfalse"
- if {asp.%arg 2%} is true:
- send "&b自動スペクテイターモード : &atrue"
- send "&6------------------------------------------"
- stop
- if arg 1 is "list":
- send "&6---------- 権限一覧 ----------"
- send "&bTNT - TNTの設置を制限します。"
- send "&bWater - 水の設置を制限します。"
- send "&bLava - 溶岩の設置を制限します。"
- send "&bDispenser - ディスペンサーの設置を制限します。"
- send "&bAutoUnBan - BANされた時に自動で解除されます。"
- send "&bAutoSpectator - 死んだ時に自動でスペクテイターモードに変更されます。"
- send "&6-------------------------------"
- stop
- if arg 1 is "version" or "ver":
- send "{@prefix} &bversion-{@version}"
- stop
- if arg 1 is "reset":
- if arg 2 is not set:
- set {tnt.%player%} to false
- set {water.%player%} to false
- set {lava.%player%} to false
- set {dis.%player%} to false
- set {aub.%player%} to false
- set {aub1.%player%} to false
- set {asp.%player%} to false
- send "{@prefix} &a%player%さんの権限をリセットしました。"
- stop
- if arg 2 is set:
- set {tnt.%arg 2%} to false
- set {water.%arg 2%} to false
- set {lava.%arg 2%} to false
- set {dis.%arg 2%} to false
- set {aub.%arg 2%} to false
- set {aub1.%arg 2%} to false
- set {asp.%arg 2%} to false
- send "{@prefix} &a%arg 2%さんの権限をリセットしました。"
- stop
- else:
- send "{@prefix} &c無効なテキストです。"
- stop
- #------------------------------------------------------------------------------------------------------------------------------
- #TNTの設置
- 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
- #------------------------------------------------------------------------------------------------------------------------------
- #ディスペンサーの設置
- on place of dispenser:
- if {dis.%player%} is true:
- stop
- if {dis.%player%} is false:
- send "{@prefix} &cあなたはディスペンサーを設置することを許可されていません!"
- cancel event
- stop
- else:
- stop
- #------------------------------------------------------------------------------------------------------------------------------
- #自動BAN解除
- on quit:
- if {aub.%player%} is true:
- if player is banned:
- set {aub1.%player%} to true
- unban player
- stop
- else:
- stop
- else:
- stop
- on join:
- if {aub1.%player%} is true:
- send "{@prefix} BAN解除に成功しました!"
- set {aub1.%player%} to false
- stop
- else:
- stop
- #------------------------------------------------------------------------------------------------------------------------------
- #自動スペクテイターモード
- on death of player:
- if {asp.%player%} is true:
- if player's gamemode is not spectator:
- set the player's gamemode to spectator
- send "{@prefix} あなたのゲームモードをスペクテイターモードに変更しました。"
- if player's gamemode is not spectator:
- stop
- else:
- stop
- #------------------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement