Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /bf:
- permission: skript.admin
- trigger:
- command "scoreboard teams remove red"
- command "scoreboard teams remove blue"
- 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 nametagVisibility hideForOtherTeams"
- command "scoreboard teams option blue nametagVisibility hideForOtherTeams"
- set {lobby} to location (-27.5, 140, -294.5)
- set {cmdlobby} to "-28 140 -295"
- set {redspawn} to location (-52.5, 137, -236.5)
- set {bluespawn} to location (-59.5, 137, -330.5)
- set {game} to false
- set {button} to true
- set {start} to false
- set {teamselector} to 0
- send "&acomprete"
- #==================================================[ 関数 ]==================================================#
- function redwin():
- set {game} to false
- loop all players:
- if {team.%loop-player%} is "red":
- send title "&6&lVICTORY" with subtitle "&c%{redpoint}% &f- &9%{bluepoint}%" to loop-player for 5 seconds
- send "&6&lVICTORY" to loop-player
- add 100 to {coin.%uuid of loop-player%}
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- send "&a+10xp &6+100coins" to loop-player
- command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- else if {team.%loop-player%} is "blue":
- send title "&9&lLOSE" with subtitle "&9%{bluepoint}% &f- &c%{redpoint}%" to loop-player for 5 seconds
- send "&9&lLOSE" to loop-player
- add 30 to {coin.%uuid of loop-player%}
- add 3 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- send "&a+3xp &6+30coins" to loop-player
- command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- command "scoreboard teams empty red"
- command "scoreboard teams empty blue"
- loop all players:
- give grey dye named "&eゲームに参加する" to loop-player
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give ender chest named "&a武器選択" to loop-player
- teleport the loop-player to {lobby}
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&f%loop-player%"
- set health of loop-player to max health of loop-player
- delete {team.%loop-player%}
- delete {teamchat.%loop-player%}
- set {died.%loop-player%} to false
- else:
- send "&a試合が終了しました" to loop-player
- loop all players:
- give grey dye named "&eゲームに参加する" to loop-player
- set {button} to true
- function bluewin():
- set {game} to false
- loop all players:
- if {team.%loop-player%} is "red":
- send title "&9&lLOSE" with subtitle "&c%{redpoint}% &f- &9%{bluepoint}%" to loop-player for 5 seconds
- send "&9&lLOSE" to loop-player
- add 30 to {coin.%uuid of loop-player%}
- add 3 to {xp.%uuid of loop-player%}
- add 1 to {lose.%uuid of loop-player%}
- send "&a+3xp &6+30coins" to loop-player
- command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- else if {team.%loop-player%} is "blue":
- send title "&6&lVICTORY" with subtitle "&9%{bluepoint}% &f- &c%{redpoint}%" to loop-player for 5 seconds
- send "&6&lVICTORY" to loop-player
- add 100 to {coin.%uuid of loop-player%}
- add 10 to {xp.%uuid of loop-player%}
- add 1 to {win.%uuid of loop-player%}
- send "&a+10xp &6+100coins" to loop-player
- command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- command "scoreboard teams empty red"
- command "scoreboard teams empty blue"
- loop all players:
- give grey dye named "&eゲームに参加する" to loop-player
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give ender chest named "&a武器選択" to loop-player
- teleport the loop-player to {lobby}
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&f%loop-player%"
- set health of loop-player to max health of loop-player
- delete {team.%loop-player%}
- delete {teamchat.%loop-player%}
- set {died.%loop-player%} to false
- else:
- send "&a試合が終了しました" to loop-player
- loop all players:
- give grey dye named "&eゲームに参加する" to loop-player
- set {button} to true
- function draw():
- set {game} to false
- loop all players:
- if {team.%loop-player%} is "red":
- send title "&e&lDraw" with subtitle "&c%{redpoint}% &f- &9%{bluepoint}%" to loop-player for 5 seconds
- send "&e&lDraw" to loop-player
- add 60 to {coin.%uuid of loop-player%}
- add 6 to {xp.%uuid of loop-player%}
- send "&a+6xp &6+60coins" to loop-player
- command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- else if {team.%loop-player%} is "blue":
- send title "&e&lDraw" with subtitle "&9%{bluepoint}% &f- &c%{redpoint}%" to loop-player for 5 seconds
- send "&e&lDraw" to loop-player
- add 60 to {coin.%uuid of loop-player%}
- add 6 to {xp.%uuid of loop-player%}
- send "&a+6xp &6+60coins" to loop-player
- command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- command "scoreboard teams empty red"
- command "scoreboard teams empty blue"
- loop all players:
- if {team.%loop-player%} is set:
- close loop-player's inventory
- command "clear %loop-player%"
- give ender chest named "&a武器選択" to loop-player
- teleport the loop-player to {lobby}
- set the loop-player's gamemode to adventure
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&f%loop-player%"
- set health of loop-player to max health of loop-player
- delete {team.%loop-player%}
- delete {teamchat.%loop-player%}
- set {died.%loop-player%} to false
- else:
- send "&a試合が終了しました" to loop-player
- loop all players:
- give grey dye named "&eゲームに参加する" to loop-player
- set {button} to true
- #==================================================[ スタートボタン ]==================================================#
- on rightclick on wood button:
- if {game} is false:
- {start} is false
- set {start} to true
- loop all players:
- send title "&a5" with subtitle "スタートまで" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
- command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
- wait 1 second
- loop all players:
- send title "&a4" with subtitle "スタートまで" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
- command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
- wait 1 second
- loop all players:
- send title "&a3" with subtitle "スタートまで" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
- command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
- wait 1 second
- loop all players:
- send title "&a2" with subtitle "スタートまで" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
- command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
- wait 1 second
- loop all players:
- send title "&a1" with subtitle "スタートまで" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
- command "execute %loop-player% ~ ~ ~ playsound minecraft:ui.button.click master %loop-player% ~ ~ ~ 1 2"
- remove grey dye named "&eゲームに参加する" from loop-player
- remove lime dye named "&cゲームを抜ける" from loop-player
- wait 1 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
- loop all players:
- give grey dye named "&eゲームに参加する" to loop-player
- set {start} to false
- else:
- set {red} to 0
- set {blue} to 0
- set {redpoint} to 0
- set {bluepoint} to 0
- set {minutes} to 4
- set {seconds} to 60
- loop all players:
- remove grey dye named "&eゲームに参加する" from loop-player
- remove lime dye named "&cゲームを抜ける" from loop-player
- if {join.%loop-player%} is true:
- remove ender chest named "&a武器選択" from loop-player
- if {teamselector} == 0:
- add 1 to {red}
- set {team.%loop-player%} to "red"
- set {teamchat.%loop-player%} to "&c"
- set {died.%loop-player%} to false
- command "clear %loop-player%"
- command "scoreboard teams join red %loop-player%"
- send subtitle "&cあなたは赤チームです" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&c%loop-player%"
- command "shot give %loop-player% %{weapon.%loop-player%}%"
- command "shot give %loop-player% medical_kit"
- teleport the loop-player to {redspawn}
- set the loop-player's gamemode to survival
- delete {join.%loop-player%}
- set {teamselector} to 1
- else if {teamselector} == 1:
- add 1 to {blue}
- set {team.%loop-player%} to "blue"
- set {teamchat.%loop-player%} to "&9"
- set {died.%loop-player%} to false
- command "clear %loop-player%"
- command "scoreboard teams join blue %loop-player%"
- send subtitle "&9あなたは青チームです" to loop-player for 2 seconds with fadein 0 tick and fadeout 20 tick
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&9%loop-player%"
- command "shot give %loop-player% %{weapon.%loop-player%}%"
- command "shot give %loop-player% medical_kit"
- teleport the loop-player to {bluespawn}
- set the loop-player's gamemode to survival
- delete {join.%loop-player%}
- set {teamselector} to 0
- set {game} to true
- set {start} to false
- set {button} to true
- else:
- if {button} is true:
- if {red} <= {blue}:
- add 1 to {red}
- set {team.%player%} to "red"
- set {teamchat.%player%} to "&c"
- set {died.%player%} to false
- command "clear %player%"
- command "scoreboard teams join red %player%"
- send subtitle "&cあなたは赤チームです" to player for 2 seconds with fadein 0 tick and fadeout 20 tick
- set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&c%player%"
- command "shot give %player% %{weapon.%player%}%"
- command "shot give %player% medical_kit"
- teleport the player to {redspawn}
- set the player's gamemode to survival
- else if {red} > {blue}:
- add 1 to {blue}
- set {team.%player%} to "blue"
- set {teamchat.%player%} to "&9"
- set {died.%player%} to false
- command "clear %player%"
- command "scoreboard teams join blue %player%"
- send subtitle "&9あなたは青チームです" to player for 2 seconds with fadein 0 tick and fadeout 20 tick
- set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&9%player%"
- command "shot give %player% %{weapon.%player%}%"
- command "shot give %player% medical_kit"
- teleport the player to {bluespawn}
- set the player's gamemode to survival
- else:
- send "現在試合の処理中です" to player
- #==================================================[ 死んだとき ]==================================================#
- on death of player:
- {game} is true
- if name of attacker's held item contains "AK-12":
- set the death message to "%{teamchat.%attacker%}%%attacker% &f[AK-12] %{teamchat.%victim%}%%victim%"
- if name of attacker's held item contains "M416":
- set the death message to "%{teamchat.%attacker%}%%attacker% &f[M416] %{teamchat.%victim%}%%victim%"
- if name of attacker's held item contains "M16A4":
- set the death message to "%{teamchat.%attacker%}%%attacker% &f[M16A4] %{teamchat.%victim%}%%victim%"
- if name of attacker's held item contains "ACE 23":
- set the death message to "%{teamchat.%attacker%}%%attacker% &f[ACE 23] %{teamchat.%victim%}%%victim%"
- if name of attacker's held item contains "AEK-971":
- set the death message to "%{teamchat.%attacker%}%%attacker% &f[AEK-971] %{teamchat.%victim%}%%victim%"
- if name of attacker's held item contains "CS-LR4":
- set the death message to "%{teamchat.%attacker%}%%attacker% &f[CS-LR4] %{teamchat.%victim%}%%victim%"
- if name of attacker's held item contains "M98B":
- set the death message to "%{teamchat.%attacker%}%%attacker% &f[M98B] %{teamchat.%victim%}%%victim%"
- if name of attacker's held item contains "SRR-61":
- set the death message to "%{teamchat.%attacker%}%%attacker% &f[SRR-61] %{teamchat.%victim%}%%victim%"
- command "clear %victim%"
- send subtitle "&4&l^" to attacker for 5 ticks with fadein 0 tick and fadeout 5 tick
- set {died.%victim%} to true
- set {deathpoint.%victim%} to location of victim
- force the victim to respawn
- teleport player to {deathpoint.%victim%}
- set health of victim to max health of victim
- set victim's gamemode to spectator
- add 1 to {kill.%uuid of attacker%}
- add 1 to {death.%uuid of victim%}
- add 30 to {coin.%uuid of attacker%}
- add 3 to {xp.%uuid of attacker%}
- send "&a+3xp &6+30coins" to attacker
- loop all players:
- if {team.%loop-player%} is "red":
- send action bar "&c%{redpoint}% &f- &9%{bluepoint}% &8| &f%{minutes}%:%{seconds}%" to loop-player
- else if {team.%loop-player%} is "blue":
- send action bar "&9%{bluepoint}% &f- &c%{redpoint}% &8| &f%{minutes}%:%{seconds}%" to loop-player
- if {team.%attacker%} is "red":
- add 1 to {redpoint}
- else if {team.%attacker%} is "blue":
- add 1 to {bluepoint}
- if {redpoint} >= 50:
- redwin()
- else if {bluepoint} >= 50:
- bluewin()
- else:
- send title "&c死んでしまった!" to victim for 6 seconds with fadein 0 tick and fadeout 0 tick
- wait 5 seconds
- send subtitle "&f復活まで 5 秒" to victim for 2 seconds with fadein 0 tick and fadeout 0 tick
- wait 1 second
- send subtitle "&f復活まで 4 秒" to victim for 2 seconds with fadein 0 tick and fadeout 0 tick
- wait 1 second
- send subtitle "&f復活まで 3 秒" to victim for 2 seconds with fadein 0 tick and fadeout 0 tick
- wait 1 second
- send subtitle "&f復活まで 2 秒" to victim for 2 seconds with fadein 0 tick and fadeout 0 tick
- wait 1 second
- send subtitle "&f復活まで 1 秒" to victim for 1 seconds with fadein 0 tick and fadeout 0 tick
- wait 1 second
- if {game} is true:
- if {%{team.%victim%}%} <= 1:
- teleport the victim to {%{team.%victim%}%spawn}
- command "effect %victim% minecraft:resistance 3 5 true"
- command "effect %victim% minecraft:invisibility 3 1 true"
- else:
- loop all players:
- if {team.%loop-player%} is {team.%victim%}:
- if {died.%loop-player%} is false:
- add loop-player to {respawn::*}
- set {size} to size of {respawn::*}
- if {size} >= 1:
- set {temp} to a random integer between 1 and {size}
- teleport the victim to {respawn::%{temp}%}
- command "effect %victim% minecraft:resistance 1 5 true"
- command "effect %victim% minecraft:invisibility 1 1 true"
- delete {respawn::*}
- else:
- teleport the victim to {%{team.%victim%}%spawn}
- command "shot give %victim% %{weapon.%victim%}%"
- command "shot give %victim% medical_kit"
- set the victim's gamemode to survival
- set {died.%victim%} to false
- #==================================================[ 仕様 ]==================================================#
- on food bar change:
- set player's food level to 10
- on craft:
- cancel event
- on damage of player:
- if {game} is true:
- if {team.%attacker%} == {team.%victim%}:
- cancel event
- else:
- send subtitle "&f&l^" to attacker for 5 ticks with fadein 0 tick and fadeout 5 tick
- else:
- cancel event
- #==================================================[ 参加・離脱したとき ]==================================================#
- 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 {coin.%uuid of player%} to 0
- set {weapon.%player%} to "ak12"
- set {died.%player%} to false
- on join:
- command "clear %player%"
- command "tp %player% %{cmdlobby}% 0 0"
- command "gamemode 2 %player%"
- set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&f%player%"
- if {game} is false:
- give grey dye named "&eゲームに参加する" to player
- give ender chest named "&a武器選択" to player
- on quit:
- {team.%player%} is not set
- command "scoreboard teams leave %player%"
- remove 1 from {%{team.%player%}%}
- delete {team.%player%}
- delete {teamchat.%player%}
- set {died.%player%} to false
- if {red} == 0:
- if {blue} == 0:
- command "scoreboard teams empty red"
- command "scoreboard teams empty blue"
- set {game} to false
- set {button} to true
- broadcast "&a試合が終了しました"
- loop all players:
- give grey dye named "&eゲームに参加する" to loop-player
- else:
- loop all players:
- if {team.%loop-player%} is "blue":
- send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
- else:
- if {blue} == 0:
- loop all players:
- if {team.%loop-player%} is "red":
- send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
- #==================================================[ 時間計測 ]==================================================#
- every a second:
- if {game} is true:
- remove 1 from {seconds}
- if {seconds} < 0:
- if {minutes} <= 0:
- if {redpoint} > {bluepoint}:
- redwin()
- else if {bluepoint} > {redpoint}:
- bluewin()
- else if {bluepoint} == {redpoint}:
- draw()
- else:
- add 60 to {seconds}
- remove 1 from {minutes}
- loop all players:
- if {team.%loop-player%} is "red":
- send action bar "&c%{redpoint}% &f- &9%{bluepoint}% &8| &f%{minutes}%:%{seconds}%" to loop-player
- else if {team.%loop-player%} is "blue":
- send action bar "&9%{bluepoint}% &f- &c%{redpoint}% &8| &f%{minutes}%:%{seconds}%" to loop-player
- #==================================================[ 武器選択GUI ]==================================================#
- on click:
- if player is holding ender chest named "&a武器選択":
- cancel event
- execute player command "weapon fsurbviejmc"
- command /coin <text> <offline player>:
- permission: skript.admin
- trigger:
- if arg 1 is "1000":
- add 1000 to {coin.%uuid of arg 2%}
- if arg 1 is "5000":
- add 5000 to {coin.%uuid of arg 2%}
- if arg 1 is "10000":
- add 10000 to {coin.%uuid of arg 2%}
- command /weapon <text>:
- trigger:
- if arg-1 is "fsurbviejmc":
- open chest with 6 row named "武器選択" to player
- set slot 8 of player's current inventory to nether star named "&e所持金&6%{coin.%uuid of player%}%&eコイン"
- loop 9 times:
- set {slotnumber} to loop-number + 8
- set slot {slotnumber} of player's current inventory to black stained glass pane named " "
- if {weapon.%player%} is "ak12":
- set slot 4 of player's current inventory to black dye named "&a&lAK-12" with lore "&b選択中"
- else if {weapon.%player%} is "m416":
- set slot 4 of player's current inventory to red dye named "&a&lM416" with lore "&b選択中"
- else if {weapon.%player%} is "m16a4":
- set slot 4 of player's current inventory to green dye named "&a&lM16A4" with lore "&b選択中"
- else if {weapon.%player%} is "ace23":
- set slot 4 of player's current inventory to cocoa beans named "&a&lACE 23" with lore "&b選択中"
- else if {weapon.%player%} is "aek971":
- set slot 4 of player's current inventory to blue dye named "&a&lAEK-971" with lore "&b選択中"
- else if {weapon.%player%} is "cslr4":
- set slot 4 of player's current inventory to coal named "&a&lCS-LR4" with lore "&b選択中"
- else if {weapon.%player%} is "m98b":
- set slot 4 of player's current inventory to charcoal named "&a&lM98B" with lore "&b選択中"
- else if {weapon.%player%} is "srr61":
- set slot 4 of player's current inventory to diamond named "&a&lSRR-61" with lore "&b選択中"
- set slot 18 of player's current inventory to black dye named "&a&lAK-12" with lore "&8Assault" and " " , "&a初期武器" , " " , "&eクリックで選択します"
- if {m416.%uuid of player%} is true:
- set slot 19 of player's current inventory to red dye named "&a&lM416" with lore "&8Assault" and " " , "&eクリックで選択します"
- else:
- set slot 19 of player's current inventory to red dye named "&c&lM416" with lore "&8Assault" and " " , "&e必要なコイン: &63000" , "&c解除していません" , " " , "&eクリックで購入します"
- if {m16a4.%uuid of player%} is true:
- set slot 20 of player's current inventory to green dye named "&a&lM16A4" with lore "&8Assault" and " " , "&eクリックで選択します"
- else:
- set slot 20 of player's current inventory to green dye named "&c&lM16A4" with lore "&8Assault" and " " , "&e必要なコイン: &65000" , "&c解除していません" , " " , "&eクリックで購入します"
- if {ace23.%uuid of player%} is true:
- set slot 21 of player's current inventory to cocoa beans named "&a&lACE 23" with lore "&8Assault" and " " , "&eクリックで選択します"
- else:
- set slot 21 of player's current inventory to cocoa beans named "&c&lACE 23" with lore "&8Assault" and " " , "&e必要なコイン: &67500" , "&c解除していません" , " " , "&eクリックで購入します"
- if {aek971.%uuid of player%} is true:
- set slot 22 of player's current inventory to blue dye named "&a&lAEK-971" with lore "&8Assault" and " " , "&eクリックで選択します"
- else:
- set slot 22 of player's current inventory to blue dye named "&c&lAEK-971" with lore "&8Assault" and " " , "&e必要なコイン: &610000" , "&c解除していません" , " " , "&eクリックで購入します"
- set slot 27 of player's current inventory to coal named "&a&lCS-LR4" with lore "&8Sniper" and " " , "&a初期武器" , " " , "&eクリックで選択します"
- if {m98b.%uuid of player%} is true:
- set slot 28 of player's current inventory to charcoal named "&a&lM98B" with lore "&8Sniper" and " " , "&eクリックで選択します"
- else:
- set slot 28 of player's current inventory to charcoal named "&c&lM98B" with lore "&8Sniper" and " " , "&e必要なコイン: &65000" , "&c解除していません" , " " , "&eクリックで購入します"
- if {srr61.%uuid of player%} is true:
- set slot 29 of player's current inventory to diamond named "&a&lSRR-61" with lore "&8Sniper" and " " , "&eクリックで選択します"
- else:
- set slot 29 of player's current inventory to diamond named "&c&lSRR-61" with lore "&8Sniper" and " " , "&e必要なコイン: &610000" , "&c解除していません" , " " , "&eクリックで購入します"
- on inventory click:
- if name of player's current inventory contains "武器選択":
- cancel event
- if clicked slot is 18:
- set {weapon.%player%} to "ak12"
- execute player command "weapon fsurbviejmc"
- send "&aAK-12を選択しました"
- if clicked slot is 19:
- if {m416.%uuid of player%} is not set:
- if {coin.%uuid of player%} >= 3000:
- remove 3000 from {coin.%uuid of player%}
- set {m416.%uuid of player%} to true
- set {weapon.%player%} to "m416"
- execute player command "weapon fsurbviejmc"
- send "&eM416を購入しました" to player
- else:
- send "&cコインが足りません" to player
- else:
- set {weapon.%player%} to "m416"
- execute player command "weapon fsurbviejmc"
- send "&aM416を選択しました"
- if clicked slot is 20:
- if {m16a4.%uuid of player%} is not set:
- if {coin.%uuid of player%} >= 5000:
- remove 5000 from {coin.%uuid of player%}
- set {m16a4.%uuid of player%} to true
- set {weapon.%player%} to "m16a4"
- execute player command "weapon fsurbviejmc"
- send "&eM16A4を購入しました" to player
- else:
- send "&cコインが足りません" to player
- else:
- set {weapon.%player%} to "m16a4"
- execute player command "weapon fsurbviejmc"
- send "&aM16A4を選択しました"
- if clicked slot is 21:
- if {ace23.%uuid of player%} is not set:
- if {coin.%uuid of player%} >= 7500:
- remove 7500 from {coin.%uuid of player%}
- set {ace23.%uuid of player%} to true
- set {weapon.%player%} to "ace23"
- execute player command "weapon fsurbviejmc"
- send "&eACE 23を購入しました" to player
- else:
- send "&cコインが足りません" to player
- else:
- set {weapon.%player%} to "ace23"
- execute player command "weapon fsurbviejmc"
- send "&aACE 23を選択しました"
- if clicked slot is 22:
- if {aek971.%uuid of player%} is not set:
- if {coin.%uuid of player%} >= 10000:
- remove 10000 from {coin.%uuid of player%}
- set {aek971.%uuid of player%} to true
- set {weapon.%player%} to "aek971"
- execute player command "weapon fsurbviejmc"
- send "&eAEK-971を購入しました" to player
- else:
- send "&cコインが足りません" to player
- else:
- set {weapon.%player%} to "aek971"
- execute player command "weapon fsurbviejmc"
- send "&aAEK-971を選択しました"
- if clicked slot is 27:
- set {weapon.%player%} to "cslr4"
- execute player command "weapon fsurbviejmc"
- send "&aCS-LR4を選択しました"
- if clicked slot is 28:
- if {m98b.%uuid of player%} is not set:
- if {coin.%uuid of player%} >= 5000:
- remove 5000 from {coin.%uuid of player%}
- set {m98b.%uuid of player%} to true
- set {weapon.%player%} to "m98b"
- execute player command "weapon fsurbviejmc"
- send "&eM98Bを購入しました" to player
- else:
- send "&cコインが足りません" to player
- else:
- set {weapon.%player%} to "m98b"
- execute player command "weapon fsurbviejmc"
- send "&aM98Bを選択しました"
- if clicked slot is 29:
- if {srr61.%uuid of player%} is not set:
- if {coin.%uuid of player%} >= 10000:
- remove 10000 from {coin.%uuid of player%}
- set {srr61.%uuid of player%} to true
- set {weapon.%player%} to "srr61"
- execute player command "weapon fsurbviejmc"
- send "&eSRR-61を購入しました" to player
- else:
- send "&cコインが足りません" to player
- else:
- set {weapon.%player%} to "srr61"
- execute player command "weapon fsurbviejmc"
- send "&aSRR-61を選択しました"
- #==================================================[ コマンド ]==================================================#
- command /leave:
- trigger:
- if {game} is true:
- command "scoreboard teams leave %player%"
- remove 1 from {%{team.%player%}%}
- close player's inventory
- command "clear %player%"
- give ender chest named "&a武器選択" to player
- teleport the player to {lobby}
- set the player's gamemode to adventure
- set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&f%player%"
- set health of player to max health of player
- delete {team.%player%}
- delete {teamchat.%player%}
- set {died.%player%} to false
- send "&c試合から抜けました"
- if {red} == 0:
- if {blue} == 0:
- loop all players:
- give grey dye named "&eゲームに参加する" to loop-player
- set {game} to false
- set {button} to true
- broadcast "&a試合が終了しました"
- else:
- loop all players:
- if {team.%loop-player%} is "blue":
- send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
- else:
- if {blue} == 0:
- loop all players:
- if {team.%loop-player%} is "red":
- send subtitle "&c敵チームが全員抜けました" to loop-player for 3 seconds with fadein 0 tick and fadeout 20 tick
- else:
- send "&c試合に参加していません"
- 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 " "
- 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 " "
- 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
- #==================================================[ その他 ]==================================================#
- every 3 seconds:
- loop all players:
- if {xp.%uuid of loop-player%} >= {needxp.%uuid of loop-player%}:
- set {xp.%uuid of loop-player%} to {xp.%uuid of loop-player%} - {needxp.%uuid of loop-player%}
- add 1 to {level.%uuid of loop-player%}
- set {needxp.%uuid of loop-player%} to {needxp.%uuid of loop-player%} * 1.2
- send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of loop-player%}%" to loop-player
- if {game} is true:
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]%{teamchat.%loop-player%}%%loop-player%"
- else:
- set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
- on chat:
- cancel event
- if {mutelist::*} contains player:
- send "&cあなたはミュートされているため、発言することができません。" to player
- stop
- else if {spam.%player's UUID%} is coloured 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 coloured message
- broadcast "&7[Lv%{level.%uuid of player%}%]%{teamchat.%player%}%%player%&e》&r%coloured message%"
- else:
- set {spam.%player's UUID%} to coloured message
- broadcast "&7[Lv%{level.%uuid of player%}%]&f%player%&e》&r%coloured message%"
- command /chat [<text>] [<offline player>] [<text>]:
- permission: skript.admin
- usage: /chat <prefix|suffix|mute|unmute> <player> <text>
- trigger:
- 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%さんはミュートされていません。" to player
- 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ゲームを抜ける":
- cancel event
- 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ゲームに参加する":
- cancel event
- 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
- command /dye:
- permission: skript.admin
- trigger:
- give grey dye named "&eゲームに参加する" to player
- command /allreset <offline player>:
- permission: skript.admin
- trigger:
- delete {m416.%uuid of arg 1%}
- delete {m16a4.%uuid of arg 1%}
- delete {ace23.%uuid of arg 1%}
- delete {aek971.%uuid of arg 1%}
- delete {m98b.%uuid of arg 1%}
- delete {srr61.%uuid of arg 1%}
- 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 {coin.%uuid of player%} to 0
- set {weapon.%player%} to "ak12"
- set {died.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement