Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #新しいPIP - PIP.1.4 + 監視&Log
- #きれいなコードで見やすいコードに
- #詳しい説明はusage.txtを参照してください
- options:
- p: &a&l[&e&lP&c&lI&e&lP&a&l]&r
- pw: &a&l[&c&lPIPW&a&l]
- v: 1.4
- w: &8[&7WE+&8]
- on load:
- loop all players:
- loop-player is op:
- if {reload} is set:
- send "{@p} &a&lPIPが&c%{reload}%&a&lによりリロードされました" to loop-player
- send "{@p} &a&lPIPが&c%{reload}%&a&lによりリロードされました" to console
- else:
- send "{@p} &a&lPIPがリロードされました" to loop-player
- send "{@p} &a&lPIPがリロードされました" to console
- command /pip [<text>] [<player>] [<text>] [<text>] [<number>]:
- permission: pip.admin
- aliases: p
- trigger:
- if arg 1 isn't set:
- send "{@p} &a&l[&e&lP&c&lI&e&lP&a&l]&r&cのヘルプを表示しました"
- send "/pip ver &c- &bPIPバージョンを表示します"
- send "/pip online &c- &b現在オンライン数を表示します"
- send "/pip ip <name> &c- &bIPを表示します"
- send "/pip uuid <name> &c- &bUUIDを表示します"
- send "/pip health <name> &c- &b体力を表示します"
- send "/pip world &c- &b現在居るワールドを表示します"
- send "/pip rename <[C]text> &c- &b持っているアイテム名を変更します"
- send "/pip relore <[C]text> &c- &b持っているアイテムロールを変更します"
- send "/pip tabset <name> <[C]text> &c- &bタブを設定します"
- send "/pip tabreset <name> &c- &bタブをリセットします"
- send "/pip fly <name> &c- &bflyをオン・オフにします"
- send "/pip break <name> &c- &b破壊許可をオン・オフにします"
- send "/pip place <name> &c- &b設置許可をオン・オフにします"
- send "/pip flz <name> &c- &bプレイヤーをフリーズさせます"
- send "/pip all <name> &c- &bフリーズ&破壊許可&設置許可をオン・オフにします"
- send "/pip god <name> &c- &bプレイヤーのGODモードをオン・オフにします"
- send "/pip prefix <name> <[C]text> &c- &bプレイヤーのプレフィックスを設定します"
- send "/pip prefixreset <name> &c- &bプレイヤーのプレフィックスをリセットします"
- send "/pip hat &c- &b手に持っているブロックをかぶります"
- send "/pip cspy &c- &bコマンドスパイをオン・オフにします"
- send "/pip vision <name> &c- &bナイトビジョンをオン・オフにします"
- send "/pip heal <name> &c- &b回復します"
- send "/pip hunger <name> &c- &b空腹度を回復します"
- send "/pip nohunger <name> &c- &bお腹をすかなくします"
- if arg 1 is set:
- if arg 1 is "ver":
- send "{@p} &a&lPIP Version:&c&l1.4"
- else if arg 1 is "online":
- send "{@p} &a&lOnline:&c&l%number of all players%"
- else if arg 1 is "ip":
- if arg 2 is set:
- send "{@p} &a&l%arg 2%&a&l's IP:&c%ip of arg 2%"
- else if arg 2 isn't set:
- send "{@p} &a&l%player%&a&l's IP:&c%ip of player%"
- else if arg 1 is "uuid":
- if arg 2 is set:
- send "&a&l%arg 2%'&a&ls UUID:&c%UUID of arg 2%"
- else if arg 2 isn't set:
- send "&a&l%player%&a&l's UUID:&c%UUID of player%"
- else if arg 1 is "health":
- if arg 2 is set:
- send "&a&l%arg 2%&a&l's Health:&c%health of arg 2%"
- else if arg 2 isn't set:
- send "&a&l%player%&a&l's Health:&c%health of player%"
- else if arg 1 is "world":
- send "{@p} &a&lWorld:&c&l%world%"
- else if arg 1 is "rename":
- if player is holding air:
- send "{@p} &cアイテムを持っていません"
- stop
- else:
- if arg 3 isn't set:
- send "{@p} &c文字が入力されていません"
- else:
- set the name of player's tool to "%colored arg 3%"
- send "{@p} &a&lアイテム名を%colored arg 3%&a&lに変更しました"
- else if arg 1 is "relore":
- if player is holding air:
- send "{@p} &cアイテムを持っていません"
- stop
- else:
- if arg 3 isn't set:
- send "{@p} &c文字が入力されていません"
- else:
- set the name of player's tool to "%colored arg 3%"
- send "{@p} &a&lアイテム名を%colored arg 3%&a&lに変更しました"
- else if arg 1 is "tabset":
- if arg 2 isn't set:
- send "{@p} &cプレイヤー名が入力されていません"
- else:
- if arg 3 isn't set:
- send "{@p} &c設定するタブ表示が入力されていません"
- else:
- set the player's tablist name to "%coloured arg 3% &8| &7%arg 2%"
- set {%arg 2%.tab} to "%coloured arg 3%"
- send "{@p} &c%arg 2%&aさんのタブ名を&r%coloured arg 3%&aに変更しました"
- else if arg 1 is "tabreset":
- if arg 2 isn't set:
- send "{@p} &cプレイヤー名が入力されていません"
- else:
- if {%arg 2%.tab} is set:
- set the player's tablist name to "&a[&cMEMBER&a] &8| &7%arg 2%"
- delete {%arg 2%.tab}
- else:
- send "{@p} &c存在しないタブ名です"
- else if arg 1 is "fly":
- if arg 2 isn't set:
- if {fly.%player%} is not set:
- set {fly.%player%} to true
- set player's flight mode to true
- send "{@p} &aフライモードをオンにしました"
- else:
- set player's flight mode to false
- delete {fly.%player%}
- send "{@p} &aフライモードをオフにしました"
- else:
- if {fly.%arg 2%} is not set:
- set {fly.%arg 2%} to true
- set arg 2's flight mode to true
- send "{@p} &a%arg 2%&aさんのフライモードをオンにしました"
- else:
- set arg 2's flight mode to false
- delete {fly.%arg 2%}
- send "{@p} &a%arg 2%&aさんのフライモードをオフにしました"
- else if arg 1 is "break":
- if arg 2 is not set:
- send "{@p} &cプレイヤー名が入力されていません"
- else:
- if {break.%arg 2%} is not set:
- set {break.%arg 2%} to true
- send "{@p} &a%arg 2%&aさんの破壊許可を剥奪しました"
- else:
- delete {break.%arg 2%}
- send "{@p} &a%arg 2%&aさんに破壊許可を付与しました"
- else if arg 1 is "place":
- if arg 2 is not set:
- send "{@p} &cプレイヤー名が入力されていません"
- else:
- if {place.%arg 2%} is not set:
- set {place.%arg 2%} to true
- send "{@p} &a%arg 2%&aさんの設置許可を剥奪しました"
- else:
- delete {place.%arg 2%}
- send "{@p} &a%arg 2%&aさんに設置許可を付与しました"
- else if arg 1 is "flz":
- if arg 2 is not set:
- send "{@p} &cプレイヤー名が入力されていません"
- else:
- if {flz.%arg 2%} is not set:
- set {flz.%arg 2%} to true
- send "{@p} &a%arg 2%&aさんをフリーズさせました"
- else:
- delete {flz.%arg 2%}
- send "{@p} &a%arg 2%&aさんをフリーズ解除しました"
- else if arg 1 is "all":
- if arg 2 is not set:
- send "{@p} &cプレイヤー名が入力されていません"
- else:
- if {all.%arg 2%} is not set:
- set {flz.%arg 2%} to true
- set {place.%arg 2%} to true
- set {break.%arg 2%} to true
- set {all.%arg 2%} to true
- send "{@p} &a%arg 2%&aさんをフリーズ&設置許可を剥奪&破壊許可を剥奪しました"
- else:
- delete {flz.%arg 2%}
- delete {place.%arg 2%}
- delete {break.%arg 2%}
- delete {all.%arg 2%}
- send "{@p} &a%arg 2%&aさんをフリーズ解除&設置許可を付与&破壊許可を付与しました"
- else if arg 1 is "god":
- if arg 2 is not set:
- send "{@p} &cプレイヤー名が入力されていません"
- else:
- if {god.%arg 2%} is not set:
- set {god.%arg 2%} to true
- send "{@p} &a%arg 2%&aさんのGODモードをオンにしました"
- else:
- delete {god.%arg 2%}
- send "{@p} &a%arg 2%&aさんのGODモードをオフにしました"
- else if arg 1 is "prefix":
- if arg 2 is not set:
- send "{@p} &cプレイヤー名が入力されていません"
- else:
- if arg 3 is not set:
- send "{@p} &c設定するプレフィックス表示が入力されていません"
- else:
- if {prefix.%arg 2%} is not set:
- set {prefix.%arg 2%} to "%colored arg 3%"
- send "{@p} &a%arg 2%&aさんのプレフィックスを%colored arg 3%に変更しました"
- else if arg 1 is "prefixreset":
- if arg 2 is not set:
- send "{@p} &cプレイヤー名が入力されていません"
- else:
- if {prefix.%arg 2%} is not set:
- send "{@p} &cプレフィックスが設定されていません"
- else:
- send "{@p} &a%arg 2%&aさんのプレフィックスをリセットしました"
- delete {prefix.%arg 2%}
- else if arg 1 is "hat":
- if player is holding air:
- send "{@p}&c手にアイテムを持っていません"
- else:
- set {held} to player's held item
- equip player with {held}
- delete {held}
- else if arg 1 is "cspy":
- if {spy} is not set:
- set {spy} to true
- send "{@p} &aCommandSpyをオンにしました"
- else:
- delete {spy}
- send "{@p} &aCommandSpyをオフにしました"
- else if arg 1 is "vision":
- if arg 2 is not set:
- if {vision.%player%} is not set:
- set {vision.%player%} to true
- apply night vision to the player for 100000 seconds
- send "{@p} &aナイトビジョンをオンにしました"
- else:
- delete {vision.%player%}
- remove night vision from the player
- send "{@p} &aナイトビジョンをオフにしました"
- else:
- if {vision.%arg 2%} is not set:
- set {vision.%arg 2%} to true
- apply night vision to the arg 2 for 100000 seconds
- send "{@p} &a%arg 2%&aさんのナイトビジョンをオンにしました"
- else:
- delete {vision.%arg 2%}
- remove night vision from the arg 2
- send "{@p} &a%arg 2%&aさんのナイトビジョンをオフにしました"
- else if arg 1 is "heal":
- if arg 2 is not set:
- heal the player
- send "{@p} &a回復しました"
- else:
- heal the arg 2
- send "{@p} &a%arg 2%&aさんを回復しました"
- else if arg 1 is "hunger":
- if arg 2 is not set:
- set the player's food level to 15
- send "{@p} &a空腹度を回復しました"
- else:
- set the arg 2's food level to 15
- send "{@p} &a%arg 2%&aさんの空腹度を回復しました"
- else if arg 1 is "nohunger":
- if arg 2 is not set:
- if {hunger.%player%} is not set:
- set {hunger.%player%} to true
- send "{@p} &a空腹状態にならないようになりました"
- else:
- delete {hunger.%player%}
- send "{@p} &a空腹状態になるようになりました"
- else:
- if {hunger.%arg 2%} is not set:
- set {hunger.%arg 2%} to true
- send "{@p} &a%arg 2%さんを&a空腹状態にならないようになりました"
- else:
- delete {hunger.%arg 2%}
- send "{@p} &a%arg 2%さんを&a空腹状態になるようになりました"
- on hunger meter change:
- if {hunger.%player%} is true:
- cancel event
- on command:
- if {spy} is true:
- if sender is a player:
- loop all players:
- loop-player is op:
- send "{@p} &7%player% &8| &7/%complete command%" to loop-player
- on chat:
- if {prefix.%player%} is set:
- cancel event
- broadcast "&7%{prefix.%player%}% &8| &7%player%&8: &f%message%"
- else:
- cancel event
- broadcast "&a[&cMEMBER&a] &8| &7%player%&8: &f%message%"
- on damage:
- victim is a player
- if {god.%victim%} is true:
- cancel event
- on any move:
- if {flz.%player%} is true:
- cancel event
- send "{@p} &c貴方は動けません"
- stop
- else:
- stop
- on place:
- if {place.%player%} is true:
- cancel event
- send "{@pw} &cあなたは設置許可が剥奪されているので設置ができません"
- stop
- else:
- stop
- on break:
- if {break.%player%} is true:
- cancel event
- send "{@pw} &cあなたは破壊許可が剥奪されているので破壊ができません"
- stop
- else:
- stop
- on join:
- if {%player%.tab} is set:
- set the player's tablist name to "%{%player%.tab}%&r &8| &7%player%&8"
- stop
- else:
- set the player's tablist name to "&a[&cMEMBER&a] &8| &7%player%&8"
- #pip 監視 <Ver.1.2>
- command /pipw [<text>] [<text>]:
- permission: pipw.admin
- trigger:
- if arg 1 isn't set:
- send "{@pw} &aPIP監視システムのヘルプを表示しました"
- send "/pipw explode <on/off> &c- &b&l爆発の許可"
- else if arg 1 is "explode":
- if arg 2 is "on" or "off":
- if arg 2 is "on":
- if {explode} is true:
- send "{@pw} &c既にオンです"
- stop
- else:
- set {explode} to true
- send "{@pw} &cExplodeがオンになりました"
- else if arg 2 is "off":
- if {explode} is false:
- send "{@pw} &c既にオフです"
- stop
- else:
- set {explode} to false
- send "{@pw} &cExplodeがオフになりました"
- else if arg 2 isn't set:
- send "{@pw} &cExplode = %{explode}%"
- on explode:
- if {explode} is false:
- stop
- else if {explode} isn't set:
- set {explode} to true
- cancel event
- else:
- cancel event
- on join:
- send action bar "&cW&aelocom to this server!" to player
- command /under:
- trigger:
- if block under player is air:
- set block Below player to glass
- send "{@w} &7Place glass on under player!"
- else:
- send "{@w} &7Already landed!"
- command /gm [<text>] [<player>]:
- permission: admin
- trigger:
- if arg 1 isn't set:
- if player's gamemode is survival or adventure or spectator:
- set the player's gamemode to creative
- send "ゲームモードがクリエイティブモードに変更されました"
- else if player's gamemode is creative:
- set the player's gamemode to survival
- send "ゲームモードがサバイバルモードに変更されました"
- else if arg 1 is "survival" or "adventure" or "spectator" or "creative" or "0" or "1" or "2" or "3":
- if arg 1 is "survival" or "0":
- if arg 2 isn't set:
- set the player's gamemode to survival
- send "ゲームモードがサバイバルモードに変更されました" to player
- else:
- set the arg 2's gamemode to survival
- send "ゲームモードがサバイバルモードに変更されました" to arg 2
- else if arg 1 is "creative" or "1":
- if arg 2 isn't set:
- set the player's gamemode to creative
- send "ゲームモードがクリエイティブモードに変更されました"
- else:
- set the arg 2's gamemode to creative
- send "ゲームモードがクリエイティブモードに変更されました" to arg 2
- else if arg 1 is "adventure" or "2":
- if arg 2 isn't set:
- set the player's gamemode to adventure
- send "ゲームモードがアドベンチャーモードに変更されました"
- else:
- set the arg 2's gamemode to adventure
- send "ゲームモードがアドベンチャーモードに変更されました" to arg 2
- else if arg 1 is "spectator" or "3":
- if arg 2 isn't set:
- set the player's gamemode to spectator
- send "ゲームモードがスペクテイターモードに変更されました"
- else:
- set the arg 2's gamemode to spectator
- send "ゲームモードがスペクテイターモードに変更されました" to arg 2
- else if arg 1 is not "survival" or "adventure" or "spectator" or "creative" or "0" or "1" or "2" or "3":
- send "存在しません"
- options:
- s: &a[&csystem&a]&r
- command /lobby [<text>]:
- aliases: /lb,/lob,/l
- trigger:
- if arg 1 isn't set:
- if {location of lobby} is set:
- teleport player to {location of lobby}
- send "{@s} &aロビーにテレポートしました" to player
- else:
- send "{@s} &cロビーの場所が設定されていません 管理者に問い合わせて下さい" to player
- send "{@s} &c[1s] Error Code" to player
- else if arg 1 is set:
- if player is op:
- if arg 1 is "set" or "remove" or "delete":
- if arg 1 is "set":
- set {location of lobby} to location of player
- send "{@s} &aロビーの場所を設定しました"
- else if arg 1 is "remove" or "delete":
- delete {location of lobby}
- send "{@s} &aロビーの場所を設定しました"
- else:
- stop
- else:
- stop
- on join:
- teleport player to {location of lobby}
- broadcast "{@s} &a%player%&eさんがサーバーに参加ました"
- on first join:
- teleport player to {location of lobby}
- broadcast "{@s} &a%player%&eさんがサーバーに初参加ました"
- on command:
- if full command is "ban naosanndesu":
- cancel event
- ban the player
- kick the player
- broadcast "&4&m---*---*---*---*---"
- broadcast "&3%player%&cさんがBANコマンドを実行したのでBANしました"
- broadcast "&4&m---*---*---*---*---"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement