Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /scoreoption:
- trigger:
- command "/scoreboard teams add red"
- command "/scoreboard teams add blue"
- command "/scoreboard teams option red color red"
- command "/scoreboard teams option blue color blue"
- command "/scoreboard teams option red friendlyfire false"
- command "/scoreboard teams option blue friendlyfire false"
- command "/scoreboard teams option red nametagVisibility hideForOtherTeams"
- command "/scoreboard teams option blue nametagVisibility hideForOtherTeams"
- set {game} to false
- set {start} to false
- on rightclick on wood button:
- if {start} is false:
- if {game} is false:
- set {start} to true
- wait 1 second
- loop all players:
- send loop-player title "&a5" with subtitle "&fスタートまで" for 1 seconds
- wait 1 second
- loop all players:
- send loop-player title "&a4" with subtitle "&fスタートまで" for 1 seconds
- wait 1 second
- loop all players:
- send loop-player title "&a3" with subtitle "&fスタートまで" for 1 seconds
- wait 1 second
- loop all players:
- send loop-player title "&a2" with subtitle "&fスタートまで" for 1 seconds
- wait 1 second
- loop all players:
- send loop-player title "&a1" with subtitle "&fスタートまで" for 1 seconds
- wait 2 second
- set {gameplayer} to 0
- loop all players:
- if {join.%loop-player%} is true:
- add 1 to {gameplayer}
- if {gameplayer} <= 1:
- broadcast "&c参加人数が足りませんでした"
- wait 1 second
- set {start} to false
- else:
- set {red} to 0
- set {blue} to 0
- set {count} to 120
- set {lobby} to location (49, 5, 10)
- set {cmdlobby} to "49 5 10"
- set {redspawn} to location (-80, 22, 33)
- set {bluespawn} to location (-18, 19, 0)
- set {obsidian} to true
- set {putobsidian} to false
- command "/scoreboard teams empty red"
- command "/scoreboard teams empty blue"
- loop all players:
- if {join.%loop-player%} is true:
- if {a} == 0:
- command "clear %loop-player%"
- if {obsidian} is true:
- command "/give %loop-player% minecraft:obsidian 1 0 {display:{Name:""金ブロックの上に置いてください!""},CanPlaceOn:[""minecraft:gold_block""]}"
- set {obsidian} to false
- set {team.%loop-player%} to "red"
- set {teamchat.%loop-player%} to "&c"
- add 1 to {red}
- command "/scoreboard teams join red %loop-player%"
- wait 2 ticks
- teleport the loop-player to {redspawn}
- set rf max hp of loop-player to 12
- give bow to loop-player
- give 32 arrow to loop-player
- give red wool named "&cあなたは赤チームです" to loop-player
- equip loop-player with leather helmet
- dye loop-player's helmet (255, 51, 0)
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&c%loop-player%&r%{suffix.%uuid of loop-player%}%"
- set loop-player's display name to " "
- send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を防衛せよ" for 5 seconds
- delete {join.%loop-player%}
- set {a} to 1
- else:
- command "clear %loop-player%"
- command "/give %loop-player% minecraft:diamond_pickaxe 1 0 {display:{Name:""黒曜石を破壊してください!""},ench:[{id:32s,lvl:1s}],CanDestroy:[""minecraft:obsidian""]}"
- set {team.%loop-player%} to "blue"
- set {teamchat.%loop-player%} to "&9"
- add 1 to {blue}
- command "/scoreboard teams join blue %loop-player%"
- wait 2 ticks
- teleport the loop-player to {bluespawn}
- set rf max hp of loop-player to 12
- give bow to loop-player
- give 32 arrow to loop-player
- give blue wool named "&9あなたは青チームです" to loop-player
- equip loop-player with leather helmet
- dye loop-player's helmet (0, 51, 255)
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&9%loop-player%&r%{suffix.%uuid of loop-player%}%"
- set loop-player's display name to " "
- send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を破壊せよ" for 5 seconds
- delete {join.%loop-player%}
- set {a} to 0
- set {game} to true
- broadcast "&c赤%{red}%人&a &9青%{blue}%人 &a参加中"
- enable PvP
- set {start} to false
- else:
- send "&c現在試合中です" to player
- on damage of player:
- if {game} is true:
- if {team.%attacker%} == {team.%victim%}:
- cancel event
- on death of player:
- if {game} is true:
- set the death message to "%{teamchat.%attacker%}%%attacker% &7--&8|&6)&7--> %{teamchat.%victim%}%%victim%"
- set {DeathPoint.%player%} to location of player
- force the player to respawn
- teleport player to {DeathPoint.%player%}
- set the player's gamemode to spectator
- remove 1 from {%{team.%victim%}%}
- add 1 to {kill.%uuid of attacker%}
- add 1 to {death.%uuid of victim%}
- add 3 to {xp.%uuid of attacker%}
- send "&a+3xp" to attacker
- if {putobsidian} is true:
- if {red} is 0:
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title " " with subtitle "&f味方が全員倒された" for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- if {team.%loop-player%} is "blue":
- send loop-player title " " with subtitle "&f敵は全滅した。黒曜石を破壊せよ" for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- else if {blue} is 0:
- set {game} to false
- disable PvP
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
- send "&6&l勝利!" to loop-player
- send "&a+10xp" to loop-player
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
- send "&9&l敗北..." to loop-player
- send "&a+2xp" to loop-player
- add 2 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set rf max hp of loop-player to 20
- set health of loop-player to max health of loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
- set loop-player's display name to "%loop-player%"
- delete {team.%loop-player%}
- command "/fill -43 21 -9 -47 21 -5 air"
- command "/fill -11 21 37 -7 21 41 air"
- else:
- send "&a試合が終了しました" to loop-player
- else if {red} is 0:
- set {game} to false
- disable PvP
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
- send "&9&l敗北..." to loop-player
- send "&a+2xp" to loop-player
- add 2 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
- send "&6&l勝利!" to loop-player
- send "&a+10xp" to loop-player
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set rf max hp of loop-player to 20
- set health of loop-player to max health of loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
- set loop-player's display name to "%loop-player%"
- delete {team.%loop-player%}
- command "/fill -43 21 -9 -47 21 -5 air"
- command "/fill -11 21 37 -7 21 41 air"
- else:
- send "&a試合が終了しました" to loop-player
- else if {blue} is 0:
- set {game} to false
- disable PvP
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
- send "&6&l勝利!" to loop-player
- send "&a+10xp" to loop-player
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
- send "&9&l敗北..." to loop-player
- send "&a+2xp" to loop-player
- add 2 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set rf max hp of loop-player to 20
- set health of loop-player to max health of loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
- set loop-player's display name to "%loop-player%"
- delete {team.%loop-player%}
- command "/fill -43 21 -9 -47 21 -5 air"
- command "/fill -11 21 37 -7 21 41 air"
- else:
- send "&a試合が終了しました" to loop-player
- else:
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- if {team.%loop-player%} is "blue":
- send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- on quit:
- if {team.%player%} is set:
- remove 1 from {%{team.%player%}%}
- delete {team.%player%}
- delete {teamchat.%player%}
- command "/scoreboard teams leave %{team.%player%}% %player%"
- if {red} is 0:
- set {game} to false
- disable PvP
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
- send "&9&l敗北..." to loop-player
- send "&a+2xp" to loop-player
- add 2 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
- send "&6&l勝利!" to loop-player
- send "&a+10xp" to loop-player
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set rf max hp of loop-player to 20
- set health of loop-player to max health of loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
- set loop-player's display name to "%loop-player%"
- delete {team.%loop-player%}
- command "/fill -43 21 -9 -47 21 -5 air"
- command "/fill -11 21 37 -7 21 41 air"
- else:
- send "&a試合が終了しました" to loop-player
- else if {blue} is 0:
- set {game} to false
- disable PvP
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
- send "&6&l勝利!" to loop-player
- send "&a+10xp" to loop-player
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
- send "&9&l敗北..." to loop-player
- send "&a+2xp" to loop-player
- add 2 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set rf max hp of loop-player to 20
- set health of loop-player to max health of loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
- set loop-player's display name to "%loop-player%"
- delete {team.%loop-player%}
- command "/fill -43 21 -9 -47 21 -5 air"
- command "/fill -11 21 37 -7 21 41 air"
- else:
- send "&a試合が終了しました" to loop-player
- else:
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- if {team.%loop-player%} is "blue":
- send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- on place of obsidian:
- if {game} is true:
- set {count} to 40
- set {putobsidian} to true
- loop all players:
- if {team.%loop-player%} is "red":
- send "&a&l黒曜石が設置された! 50秒間守り切れ!" to loop-player
- send loop-player title " " with subtitle "&a黒曜石が設置された! 50秒間守り切れ!" for 3 seconds
- if {team.%loop-player%} is "blue":
- send "&c&l黒曜石が設置された! 50秒以内に破壊せよ!" to loop-player
- send loop-player title " " with subtitle "&c黒曜石が設置された! 50秒以内に破壊せよ!" for 3 seconds
- on break of obsidian:
- if {game} is true:
- set {game} to false
- disable PvP
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&9&l敗北" with subtitle "&f黒曜石が破壊された" for 5 seconds
- send "&9&l敗北..." to loop-player
- send "&a+2xp" to loop-player
- add 2 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&6&l勝利" with subtitle "&f黒曜石を破壊した" for 5 seconds
- send "&6&l勝利!" to loop-player
- send "&a+10xp" to loop-player
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {victory.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set rf max hp of loop-player to 20
- set health of loop-player to max health of loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
- set loop-player's display name to "%loop-player%"
- delete {team.%loop-player%}
- command "/fill -43 21 -9 -47 21 -5 air"
- command "/fill -11 21 37 -7 21 41 air"
- else:
- send "&a試合が終了しました" to loop-player
- every a second in "world":
- if {game} is true:
- remove 1 from {count}
- if {count} < 0:
- set {game} to false
- disable PvP
- if {putobsidian} is true:
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
- send "&6&l勝利!" to loop-player
- send "&a+10xp" to loop-player
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
- send "&9&l敗北..." to loop-player
- send "&a+2xp" to loop-player
- add 2 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- command "/tp %loop-player% %{cmdlobby}%"
- set rf max hp of loop-player to 20
- set health of loop-player to max health of loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
- set loop-player's display name to "%loop-player%"
- delete {team.%loop-player%}
- command "/fill -43 21 -9 -47 21 -5 air"
- command "/fill -11 21 37 -7 21 41 air"
- else:
- send "&a試合が終了しました" to loop-player
- else:
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
- send "&9&l敗北..." to loop-player
- send "&a+2xp" to loop-player
- add 2 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
- send "&6&l勝利!" to loop-player
- send "&a+10xp" to loop-player
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- command "/tp %loop-player% %{cmdlobby}%"
- set rf max hp of loop-player to 20
- set health of loop-player to max health of loop-player
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
- set loop-player's display name to "%loop-player%"
- delete {team.%loop-player%}
- command "/fill -43 21 -9 -47 21 -5 air"
- command "/fill -11 21 37 -7 21 41 air"
- else:
- send "&a試合が終了しました" to loop-player
- loop all players:
- if {team.%loop-player%} is set:
- set action bar of loop-player to "&f(残り時間: %{count}%秒)"
- command /stats [<offline player>]:
- trigger:
- if arg 1 is not set:
- send "&6-----< &b%player% &6>-----"
- set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
- set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
- send " &alevel: &e%{level.%uuid of player%}%" to player
- send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
- send " "
- send " &akill: &e%{kill.%uuid of player%}%" to player
- send " &adeath: &e%{death.%uuid of player%}%" to player
- send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
- send " &awin: &e%{win.%uuid of player%}%" to player
- send " &alose: &e%{lose.%uuid of player%}%" to player
- send " &aW/L: &e%{winlose.%uuid of player%}%" to player
- else:
- send "&6-----< &b%arg 1% &6>-----"
- set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
- set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
- send " &alevel: &e%{level.%uuid of arg 1%}%" to player
- send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
- send " "
- send " &akill: &e%{kill.%uuid of arg 1%}%" to player
- send " &adeath: &e%{death.%uuid of arg 1%}%" to player
- send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
- send " &awin: &e%{win.%uuid of arg 1%}%" to player
- send " &alose: &e%{lose.%uuid of arg 1%}%" to player
- send " &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
- on first join:
- set {kill.%uuid of player%} to 0
- set {death.%uuid of player%} to 0
- set {killdeath.%uuid of player%} to 0
- set {win.%uuid of player%} to 0
- set {lose.%uuid of player%} to 0
- set {winlose.%uuid of player%} to 0
- set {level.%uuid of player%} to 1
- set {xp.%uuid of player%} to 0
- set {needxp.%uuid of player%} to 10
- set {prefix.%uuid of player%} to ""
- set {suffix.%uuid of player%} to ""
- on any movement:
- if {xp.%uuid of player%} >= {needxp.%uuid of player%}:
- set {xp.%uuid of player%} to {xp.%uuid of player%} - {needxp.%uuid of player%}
- add 1 to {level.%uuid of player%}
- set {needxp.%uuid of player%} to {needxp.%uuid of player%} * 1.5
- send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of player%}%"
- set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
- set tab header to "&7-- &d&lTeamBowPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
- on join:
- wait 3 ticks
- set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
- set tab header to "&7-- &d&lTeamBowPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
- command "/clear %player%"
- give grey dye named "&eゲームに参加する" to player
- command "/tp %player% %{cmdlobby}%"
- set rf max hp of player to 20
- set health of player to max health of player
- command "/gamemode 2 %player%"
- send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
- send " &f&lTeamBowPvP" to player
- send " " to player
- send " &e&l攻撃側と防衛側に分かれ、チームで戦います。" to player
- send " &e&l攻撃側は特定の場所に黒曜石を置き、" to player
- send " &e&lそれを壊されないよう守る必要があります。" to player
- send " &e&l防衛側は黒曜石を置かれないように防衛しましょう。" to player
- send " &e&lもし置かれても、破壊が可能です。" to player
- send " " to player
- send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
- on chat:
- cancel event
- if {mutelist::*} contains player:
- send "&cあなたはミュートされているため、発言することができません。" to player
- stop
- else if {spam.%player's UUID%} is "%message%":
- send "&6-----------------------------" to player
- send "&c&l同じメッセージを送信できません" to player
- send "&6-----------------------------" to player
- stop
- else if {team.%player%} is set:
- set {spam.%player's UUID%} to "%message%"
- broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%{teamchat.%player%}%%player%%{suffix.%uuid of player%}%&e》&r%message%"
- else:
- set {spam.%player's UUID%} to "%message%"
- broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%&e》&r%message%"
- command /chat <text> <offline player> <text>:
- permission: skript.admin
- usage: /chat <prefix|suffix|mute|unmute> <player> <text>
- trigger:
- if arg 1 is "prefix":
- set {prefix.%uuid of arg 2%} to coloured arg 3
- send "&b%arg 2%さんのprefixを「&r%{prefix.%uuid of arg 2%}%&b」に変更しました。"
- stop
- if arg 1 is "suffix":
- set {suffix.%uuid of arg 2%} to coloured arg 3
- send "&b%arg 2%さんのsuffixを&r「%{suffix.%uuid of arg 2%}%&b」に変更しました。"
- stop
- if arg 1 is "mute":
- if {mutelist::*} contains arg 2:
- send "&c%arg 2%さんはすでにミュートされています。"
- stop
- send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
- send "&e理由:%coloured arg 3%" to ops
- add arg 2 to {mutelist::*}
- stop
- if arg 1 is "unmute":
- if {mutelist::*} contains arg 2:
- send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
- send "&a理由:%coloured arg 3%" to ops
- remove arg 2 from {mutelist::*}
- stop
- send "&c%arg 2%さんはミュートされていません。"
- stop
- command /mutelist [<offline player>]:
- permission: skript.admin
- trigger:
- if arg 1 is not set:
- send "&d次のプレイヤーがミュートされています:"
- send "%{mutelist::*}%"
- stop
- if {mutelist::*} contains arg 1:
- send "&d対象のプレイヤーはミュートされています。"
- stop
- send "&b対象のプレイヤーはミュートされていません。"
- on click:
- if player is holding lime dye named "&cゲームを抜ける":
- remove lime dye named "&cゲームを抜ける" from player
- set {join.%player%} to false
- send "&cゲームを抜けました"
- wait 5 ticks
- give grey dye named "&eゲームに参加する" to player
- on click:
- if player is holding grey dye named "&eゲームに参加する":
- remove grey dye named "&eゲームに参加する" from player
- set {join.%player%} to true
- send "&eゲームに参加しました" to player
- wait 5 ticks
- give lime dye named "&cゲームを抜ける" to player
- on hunger bar change:
- set the player's food level to 10
- on inventory click:
- if {game} is true:
- if {team.%player%} is set:
- if clicked slot is 39:
- cancel event
- command /pd delete [<offline player>]:
- permission: skript.admin
- trigger:
- set {kill.%uuid of arg 1%} to 0
- set {death.%uuid of arg 1%} to 0
- set {killdeath.%uuid of arg 1%} to 0
- set {win.%uuid of arg 1%} to 0
- set {lose.%uuid of arg 1%} to 0
- set {winlose.%uuid of arg 1%} to 0
- set {level.%uuid of arg 1%} to 1
- set {xp.%uuid of arg 1%} to 0
- set {needxp.%uuid of arg 1%} to 10
- set {prefix.%uuid of arg 1%} to ""
- set {suffix.%uuid of arg 1%} to ""
- command /dye:
- permission: skript.admin
- trigger:
- give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement