Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Plugins Usados na Codificação:
- #Skript 2.2-SNAPSHOT
- #SkRayFall 1.8
- #Umbaska 2.0 Beta 5.052
- #WildSkript 1.8
- #SkStuff 1.5
- #Atenção o MiniGame não ira Funcionar sem estes AddOns
- on script load:
- if existence of "plugins/TeamSkywars/Cages/Put-Your-Cages-Here" is false:
- create file "plugins/TeamSkywars/Cages/Put-Your-Cages-Here"
- on script load:
- if existence of "plugins/TeamSkywars/Config.yml" is false:
- delete {TeamSkywars::Config::*}
- create file "plugins/TeamSkywars/Config.yml"
- wait 5 seconds
- #==============================Options=============================================================
- if {TeamSkywars::Config::Options.WorldName} is not set:
- set yaml value "Options.WorldName" from file "../../TeamSkywars/Config.yml" to "Teste"
- if {TeamSkywars::Config::Options.MinPlayers} is not set:
- set yaml value "Options.MinPlayers" from file "../../TeamSkywars/Config.yml" to "2"
- #==============================Messages=============================================================
- if {TeamSkywars::Config::Lang.NoPermission} is not set:
- set yaml value "Lang.NoPermission" from file "../../TeamSkywars/Config.yml" to "&cVoce Nao tem Permissao para Isso!"
- if {TeamSkywars::Config::Lang.JoinTeam} is not set:
- set yaml value "Lang.JoinTeam" from file "../../TeamSkywars/Config.yml" to "&eVoce entrou no Time"
- if {TeamSkywars::Config::Lang.Join} is not set:
- set yaml value "Lang.Join" from file "../../TeamSkywars/Config.yml" to "Joined the Game"
- if {TeamSkywars::Config::Lang.Leave} is not set:
- set yaml value "Lang.Leave" from file "../../TeamSkywars/Config.yml" to "&cVoce saiu do Jogo"
- if {TeamSkywars::Config::Lang.BlueTeam} is not set:
- set yaml value "Lang.BlueTeam" from file "../../TeamSkywars/Config.yml" to "&9Azul"
- if {TeamSkywars::Config::Lang.RedTeam} is not set:
- set yaml value "Lang.RedTeam" from file "../../TeamSkywars/Config.yml" to "&4Vermelho"
- if {TeamSkywars::Config::Lang.GreenTeam} is not set:
- set yaml value "Lang.GreenTeam" from file "../../TeamSkywars/Config.yml" to "&2Verde"
- if {TeamSkywars::Config::Lang.YellowTeam} is not set:
- set yaml value "Lang.YellowTeam" from file "../../TeamSkywars/Config.yml" to "&eAmarelo"
- if {TeamSkywars::Config::Lang.ArenaNotSet} is not set:
- set yaml value "Lang.ArenaNotSet" from file "../../TeamSkywars/Config.yml" to "&cVerifique se a arena esta setada Corretamente!"
- if {TeamSkywars::Config::Lang.StartingTitle} is not set:
- set yaml value "Lang.StartingTitle" from file "../../TeamSkywars/Config.yml" to "&eIniciando em..."
- if {TeamSkywars::Config::Lang.TitleSeconds} is not set:
- set yaml value "Lang.TitleSeconds" from file "../../TeamSkywars/Config.yml" to "&fSegundos"
- if {TeamSkywars::Config::Lang.GameStartTitle} is not set:
- set yaml value "Lang.GameStartTitle" from file "../../TeamSkywars/Config.yml" to "&eSkyWars Started"
- if {TeamSkywars::Config::Lang.GameStartSubTitle} is not set:
- set yaml value "Lang.GameStartSubTitle" from file "../../TeamSkywars/Config.yml" to "&fMapa: FilipeNockSkript"
- if {TeamSkywars::Config::Lang.GameStartMessage1} is not set:
- set yaml value "Lang.GameStartMessage1" from file "../../TeamSkywars/Config.yml" to "&a-------------------------------------------------"
- if {TeamSkywars::Config::Lang.GameStartMessage2} is not set:
- set yaml value "Lang.GameStartMessage2" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Started! &6GoodLuck..!"
- if {TeamSkywars::Config::Lang.GameStartMessage3} is not set:
- set yaml value "Lang.GameStartMessage3" from file "../../TeamSkywars/Config.yml" to "&a-------------------------------------------------"
- if {TeamSkywars::Config::Lang.StartingMessage20} is not set:
- set yaml value "Lang.StartingMessage 20 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l20 &9Segundos!"
- if {TeamSkywars::Config::Lang.StartingMessage15} is not set:
- set yaml value "Lang.StartingMessage 15 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l15 &9Segundos!"
- if {TeamSkywars::Config::Lang.StartingMessage10} is not set:
- set yaml value "Lang.StartingMessage 10 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l10 &9Segundos!"
- if {TeamSkywars::Config::Lang.StartingMessage5} is not set:
- set yaml value "Lang.StartingMessage 5 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l5 &9Segundos!"
- if {TeamSkywars::Config::Lang.StartingMessage4} is not set:
- set yaml value "Lang.StartingMessage 4 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l4 &9Segundos!"
- if {TeamSkywars::Config::Lang.StartingMessage3} is not set:
- set yaml value "Lang.StartingMessage 3 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l3 &9Segundos!"
- if {TeamSkywars::Config::Lang.StartingMessage2} is not set:
- set yaml value "Lang.StartingMessage 2 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l2 &9Segundos!"
- if {TeamSkywars::Config::Lang.StartingMessage1} is not set:
- set yaml value "Lang.StartingMessage 1 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l1 &9Segundos!"
- if {TeamSkywars::Config::Lang.JoinedElse} is not set:
- set yaml value "Lang.JoinedElse" from file "../.. /TeamSkywars/Config.yml" to "&c"
- #Options
- set {TeamSkywars::Config::Options.WorldName} to yaml value "Options.WorldName" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Options.MinPlayers} to yaml value "Options.MinPlayers" from file "../../TeamSkywars/Config.yml"
- #Messages
- set {TeamSkywars::Config::Lang.JoinTeam} to yaml value "Lang.JoinTeam" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.Leave} to yaml value "Lang.Leave" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.Join} to yaml value "Lang.Join" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.BlueTeam} to yaml value "Lang.BlueTeam" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.RedTeam} to yaml value "Lang.RedTeam" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.GreenTeam} to yaml value "Lang.GreenTeam" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.YellowTeam} to yaml value "Lang.YellowTeam" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.ArenaNotSet} to yaml value "Lang.ArenaNotSet" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.NoPermission} to yaml value "Lang.NoPermission" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.StartingTitle} to yaml value "Lang.StartingTitle" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.TitleSeconds} to yaml value "Lang.TitleSeconds" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.GameStartTitle} to yaml value "Lang.GameStartTitle" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.GameStartSubTitle} to yaml value "Lang.GameStartSubTitle" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.GameStartMessage1} to yaml value "Lang.GameStartMessage1" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.GameStartMessage2} to yaml value "Lang.GameStartMessage2" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.GameStartMessage3} to yaml value "Lang.GameStartMessage3" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.StartingMessage20} to yaml value "Lang.StartingMessage 20 Seconds" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.StartingMessage15} to yaml value "Lang.StartingMessage 15 Seconds" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.StartingMessage10} to yaml value "Lang.StartingMessage 10 Seconds" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.StartingMessage5} to yaml value "Lang.StartingMessage 5 Seconds" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.StartingMessage4} to yaml value "Lang.StartingMessage 4 Seconds" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.StartingMessage3} to yaml value "Lang.StartingMessage 3 Seconds" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.StartingMessage2} to yaml value "Lang.StartingMessage 2 Seconds" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.StartingMessage1} to yaml value "Lang.StartingMessage 1 Seconds" from file "../../TeamSkywars/Config.yml"
- set {TeamSkywars::Config::Lang.JoinedElse} to yaml value "Lang.JoinedElse" from file "../../TeamSkywars/Config.yml"
- Variables:
- {player.count.teste} = 0
- {team.green} = 0
- {team.red} = 0
- {team.blue} = 0
- {team.yellow} = 0
- {arena.%player%.kills} = 0
- command /tsw-check:
- trigger:
- if {playing.%player%.arena} is true:
- if {arena.alive} = 1:
- loop {alive::*}:
- send "%loop-index% win the game"
- teleport player to {tsw.spect}
- command /leave:
- trigger:
- if {playing.%player%.lobby} or {playing.%player%.arena} is true:
- remove 1 from {player.count.teste}
- teleport player to {tsw.mainlobby}
- set {playing.%player%.lobby} to false
- send "%colored {TeamSkywars::Config::Lang.Leave}%"
- display board named "" to player
- set player's tab list name to "&f%player%"
- set {playing.%player%.spec} to false
- set player's gamemode to survival
- heal the player
- set hunger of player to 20
- clear player's inventory
- remove the player from {team.red.arena::*}
- remove the player from {team.blue.arena::*}
- remove the player from {team.yellow.arena::*}
- remove the player from {team.green.arena::*}
- if player is in {team.red.arena::*}:
- remove 1 from {team.red}
- if player is in {team.blue.arena::*}:
- remove 1 from {team.blue}
- if player is in {team.yellow.arena::*}:
- remove 1 from {team.yellow}
- if player is in {team.green.arena::*}:
- remove 1 from {team.green}
- else:
- send "%colored {TeamSkywars::Config::Lang.JoinedElse}%"
- command /tsw [<text>]:
- trigger:
- if player has permission "tsw.use":
- if arg 1 is "join":
- if {tsw.lobby} is set:
- add 1 to {player.count.teste}
- add 1 to {arena.alive}
- add player to {alive::*}
- set {playing.%player%.lobby} to true
- teleport player to {tsw.lobby}
- broadcast "&e%player% %colored {TeamSkywars::Config::Lang.Join}% &7(%{player.count.teste}%/12) "
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&fWaiting..." in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- clear player's inventory
- set player's gamemode to adventure
- heal the player
- set hunger of player to 20
- set slot 0 of player to bow named "&eKits"
- set slot 1 of player to paper named "&bTeams"
- set slot 8 of player to bed named "&cLeave"
- if {player.count.teste} is equal to 2:
- make all players execute command "/tsw ybaidmstau"
- if {team.red.arena::*} is equal to 3:
- make player execute command "/team blue"
- if {team.blue.arena::*} is equal to 3:
- make player execute command "/team green"
- if {team.green.arena::*} is equal to 3:
- make player execute command "/team yellow"
- else:
- send "%colored {TeamSkywars::Config::Lang.JoinedElse}%"
- if arg 1 is not set:
- make player execute command "/tsw help"
- if arg 1 is "help":
- send "&9===============&8[&bArenaCommands&8]&9==============="
- send "&e/tsw join "
- send "&e/team &9[Team] &7=>&9Blue, &4Red, &eYellow, &2Green"
- send "&e/leave"
- if player has permission "tsw.use":
- if arg 1 is "ybaidmstau":
- if {tsw.lobby} is set:
- if {playing.%player%.lobby} is true:
- set {team.blue} to 0
- set {team.red} to 0
- set {team.green} to 0
- set {team.yellow} to 0
- heal player
- set hunger of player to 20
- display board named "" to player
- send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f20 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 5 seconds
- send "%colored {TeamSkywars::Config::Lang.StartingMessage20}%"
- play raw sound "random.click" at player with pitch 1 volume 0.3
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&fStarting in &a20s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 5 seconds
- display board named "" to player
- send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f15 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 5 seconds
- send "%colored {TeamSkywars::Config::Lang.StartingMessage15}%"
- play raw sound "random.click" at player with pitch 1 volume 0.3
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&fStarting in &a15s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 5 seconds
- display board named "" to player
- send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f10 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 5 seconds
- send "%colored {TeamSkywars::Config::Lang.StartingMessage10}%"
- play raw sound "random.click" at player with pitch 1 volume 0.3
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&fStarting in &a10s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 5 seconds
- display board named "" to player
- send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f5 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 1 seconds
- send "%colored {TeamSkywars::Config::Lang.StartingMessage5}%"
- play raw sound "random.click" at player with pitch 1 volume 0.3
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&fStarting in &a5s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 1 second
- display board named "" to player
- send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f4 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 1 seconds
- send "%colored {TeamSkywars::Config::Lang.StartingMessage4}%"
- play raw sound "random.click" at player with pitch 1 volume 0.3
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&fStarting in &a4s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 1 second
- display board named "" to player
- send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f3 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 1 seconds
- send "%colored {TeamSkywars::Config::Lang.StartingMessage3}%"
- play raw sound "random.click" at player with pitch 1 volume 0.3
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&fStarting in &a3s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 1 second
- display board named "" to player
- send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f2 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 1 seconds
- send "%colored {TeamSkywars::Config::Lang.StartingMessage2}%"
- play raw sound "random.click" at player with pitch 1 volume 0.3
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&fStarting in &a2s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 1 second
- display board named "" to player
- send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f1 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 1 seconds
- send "%colored {TeamSkywars::Config::Lang.StartingMessage1}%"
- play raw sound "random.click" at player with pitch 1 volume 0.3
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&fStarting in &a1s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 1 second
- set {_session} to new edit session in player's world with limit -1
- paste schem "plugins/TeamSkyWars/Cages/cage-red" at {loc.red} using {_session} ignoring air
- paste schem "plugins/TeamSkyWars/Cages/cage-blue" at {loc.blue} using {_session} ignoring air
- paste schem "plugins/TeamSkyWars/Cages/cage-yellow" at {loc.yellow} using {_session} ignoring air
- paste schem "plugins/TeamSkyWars/Cages/cage-green" at {loc.green} using {_session} ignoring air
- teleport {team.red.arena::*} to {tsw.red.spawn}
- teleport {team.blue.arena::*} to {tsw.blue.spawn}
- teleport {team.yellow.arena::*} to {tsw.yellow.spawn}
- teleport {tteam.green.arena::*} to {tsw.green.spawn}
- set player's gamemode to adventure
- set slot 1 of player to air
- send "&cAguardando...15"
- display board named "" to player
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&cPre-Game &a15s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 5 seconds
- send "&cAguardando...10"
- display board named "" to player
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&cPre-Game &a10s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 5 seconds
- send "&cAguardando...5"
- display board named "" to player
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&cPre-Game &a5s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 1 seconds
- display board named "" to player
- send "&cAguardando...4"
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&cPre-Game &a4s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 1 seconds
- send "&cAguardando...3"
- display board named "" to player
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&cPre-Game &a3s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 1 seconds
- send "&cAguardando...2"
- display board named "" to player
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&cPre-Game &a2s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- wait 1 seconds
- display board named "" to player
- set name of sidebar of player to "&e&lTeamSkyWars"
- set score "&1" in sidebar of player to 8
- set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
- set score "&2" in sidebar of player to 6
- set score "&cPre-Game &a1s" in sidebar of player to 5
- set score "&3" in sidebar of player to 4
- set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
- set score "&4" in sidebar of player to 2
- set score "&ewww.youserver.net" in sidebar of player to 1
- send "&cAguardando...1"
- undo changes of {_session}
- clear player's inventory
- set {playing.%player%.arena} to true
- set {playing.%player%.lobby} to false
- execute console command "/chestrefill"
- display board named "" to player
- play raw sound "random.levelup" at player with pitch 1 volume 0.3
- send player title "%colored {TeamSkywars::Config::Lang.GameStartTitle}%" with subtitle "%colored {TeamSkywars::Config::Lang.GameStartSubTitle}%" for 2 seconds
- display board named "" to player
- send "%colored {TeamSkywars::Config::Lang.GameStartMessage1}%"
- send ""
- send "%colored {TeamSkywars::Config::Lang.GameStartMessage2}%"
- send ""
- send "%colored {TeamSkywars::Config::Lang.GameStartMessage3}%"
- wait 2 ticks
- make player execute command "/timerstart 1"
- wait 20 ticks
- heal player
- set hunger of player to 20
- set player's gamemode to survival
- wait 1 minutes
- make player execute command "/timerstop"
- execute console command "/chestrefill"
- play raw sound "random.chestopen" at player with pitch 1 volume 0.3
- send player title "" with subtitle "&eAll Chests has been Refilled" for 3 seconds
- play raw sound "random.chestopen" at player with pitch 1 volume 0.3
- send player title "" with subtitle "&eAll Chests has been Refilled" for 3 seconds
- wait 3 ticks
- make player execute command "/timerstart 2"
- wait 2 minutes
- make player execute command "/timerstop"
- execute console command "/chestrefill"
- play raw sound "random.chestopen" at player with pitch 1 volume 0.3
- send player title "" with subtitle "&eAll Chests has been Refilled" for 3 seconds
- play raw sound "random.chestopen" at player with pitch 1 volume 0.3
- send player title "" with subtitle "&eAll Chests has been Refilled" for 3 seconds
- if {playing.%player%.arena} is true:
- if {player.count.teste} = 0:
- wait 1 second
- set {playing.%player%.arena} to false
- else:
- send "%colored {TeamSkywars::Config::Lang.JoinedElse}%"
- else:
- send "%colored {TeamSkywars::Config::Lang.ArenaNotSet}%"
- command /tswsetup [<text>] [<text>]:
- trigger:
- if player has permission "tsw.admin":
- if arg 1 is not set:
- send "&e/tswsetup create"
- send "&e/tswsetup setmainlobby"
- send "&e/tswsetup setspawn &4(blue)&c(red)&2(green)&6(yellow)"
- send "&e/tswsetup setlobby"
- send "&e/tswsetup setspec"
- send "&e/tswsetup delarena"
- if arg 1 is "create":
- set slot 0 of player to stick named "&c&L>>&e&lArenaCreator&c&l<<"
- set slot 2 of player to REDSTONE named "&c&L>>&e&lFinishCreation&c&l<<"
- set {wand.chest} to true
- if arg 1 is "setmainlobby":
- set {tsw.mainlobby} to location of player
- send "&8[&bTeamSkyWars&8] &9MainLobby &eSuccesFull Set."
- if arg 1 is "setspawn":
- if arg 2 is "blue":
- set {tsw.blue.spawn} to location of player
- set {loc.blue} to location of player
- send "&8[&bTeamSkyWars&8] &eSpawn &9%arg 2% &eSet to Arena."
- if arg 2 is "red":
- set {tsw.red.spawn} to location of player
- set {loc.red} to location of player
- send "&8[&bTeamSkyWars&8] &eSpawn &4%arg 2% &eSet to Arena."
- if arg 2 is "yellow":
- set {tsw.yellow.spawn} to location of player
- set {loc.yellow} to location of player
- send "&8[&bTeamSkyWars&8] &eSpawn &6%arg 2% &eSet to Arena."
- if arg 2 is "green":
- set {tsw.green.spawn} to location of player
- set {loc.green} to location of player
- send "&8[&bTeamSkyWars&8] &eSpawn &2%arg 2% &eSet to Arena."
- if arg 1 is "setlobby":
- set {tsw.lobby} to location of player
- send "&8[&bTeamSkyWars&8] &eLobby SuccesFull Set to Arena"
- if arg 1 is "setspec":
- set {tsw.spect} to location of player
- send "&8[&bTeamSkyWars&8] &eSpectator SuccesFull Set to Arena"
- if arg 1 is "delarena":
- delete {tsw.lobby}
- delete {tsw.spect}
- delete {tsw.mainlobby}
- delete {tsw.yellow.spawn}
- delete {tsw.red.spawn}
- delete {tsw.green.spawn}
- delete {tsw.blue.spawn}
- delete {loc.green}
- delete {loc.red}
- delete {loc.blue}
- delete {loc.yellow}
- send "&eRemoving Spawns.."
- wait 1 second
- send "&eRemoving Variables.."
- wait 1 second
- send "&eAll Locations and Spawns loaded and removed successful"
- else:
- send "%colored {TeamSkywars::Config::Lang.NoPermission}%"
- command /forcestart:
- trigger:
- if {playing.%player%.lobby} is true:
- make all players execute command "/tsw ybaidmstau"
- else:
- send "%colored {TeamSkywars::Config::Lang.JoinedElse}%"
- #Teams===================================================================
- command /team [<text>]:
- trigger:
- if {playing.%player%.lobby} is true:
- if argument 1 is "blue":
- send "%colored {TeamSkywars::Config::Lang.JoinTeam}% %colored {TeamSkywars::Config::Lang.BlueTeam}%"
- set {team1.%player%} to 1
- add player to {team.blue.arena::*}
- add 1 to {team.blue}
- set player's tab list name to "&9%player%"
- set display name of player to "&9%player%"
- if argument 1 is "red":
- send "%colored {TeamSkywars::Config::Lang.JoinTeam}% %colored {TeamSkywars::Config::Lang.RedTeam}%"
- set {team2.%player%} to 2
- add 1 to {team.red}
- add player to {team.red.arena::*}
- set player's tab list name to "&4%player%"
- set display name of player to "&4%player%"
- if argument 1 is "yellow":
- send "%colored {TeamSkywars::Config::Lang.JoinTeam}% %colored {TeamSkywars::Config::Lang.YellowTeam}%"
- set {team3.%player%} to 3
- add 1 to {team.yellow}
- add player to {team.yellow.arena::*}
- set player's tab list name to "&e%player%"
- set display name of player to "&6%player%"
- if argument 1 is "green":
- send "%colored {TeamSkywars::Config::Lang.JoinTeam}% %colored {TeamSkywars::Config::Lang.GreenTeam}%"
- set {team4.%player%} to 4
- add 1 to {team.green}
- add player to {team.green.arena::*}
- set player's tab list name to "&2%player%"
- set display name of player to "&2%player%"
- if arg 1 is not set:
- open chest with 1 rows named "&bTeams" to player
- wait 2 ticks
- format slot 0 of player with wool:11 named "&eTeam &9Blue" with lore "&7Click to select Team" to close then run [make player execute command "/team blue"]
- format slot 1 of player with wool:14 named "&eTeam &4Red" with lore "&7Click to select Team" to close then run [make player execute command "/team red"]
- format slot 2 of player with wool:4 named "&eTeam &6Yellow" with lore "&7Click to select Team" to close then run [make player execute command "/team yellow"]
- format slot 3 of player with wool:5 named "&eTeam &2Green" with lore "&7Click to select Team" to close then run [make player execute command "/team green"]
- else:
- send "%colored {TeamSkywars::Config::Lang.JoinedElse}%"
- set player's tab list name to "&f%player%"
- command /swkit:
- trigger:
- open chest with 5 rows named "&eKits" to player
- on rightclick with bed:
- if {playing.%player%.lobby} is true:
- make player execute "/leave"
- else:
- cancel event
- on rightclick with paper:
- if {playing.%player%.lobby} is true:
- make player execute "/team"
- else:
- cancel event
- on rightclick with bow:
- if {playing.%player%.lobby} is true:
- make player execute "/swkit"
- else:
- cancel event
- on break:
- if {playing.%player%.lobby} is true:
- cancel event
- on place:
- if {playing.%player%.lobby} is true:
- cancel event
- on break:
- if {playing.%player%.spec} is true:
- cancel event
- on place:
- if {playing.%player%.spec} is true:
- cancel event
- on drop:
- if {playing.%player%.spec} is true:
- cancel event
- on inventory click:
- if {playing.%player%.spec} is true:
- cancel event
- on drop:
- if {playing.%player%.lobby} is true:
- cancel event
- on damage:
- damage cause is void:
- if {playing.%victim%.arena} is true:
- teleport victim to {tsw.spect}
- clear victim's inventory
- set {playing.%victim%.spec} to true
- set gamemode of victim to spectator
- add 100 to victim's balance
- send "&6+100 Coins for participation" to victim
- send "&cYou Died!" to victim
- send victim title "&cYou Died" with subtitle "&fYou are Curently Spectator" for 4 seconds
- broadcast "&7%victim% &ehas killed by void!"
- set slot 4 of victim to bed named "&eLeave"
- remove 1 from {arena.alive}
- remove player from {arena.player.alive::*}
- if victim is in {team.blue.arena::*}:
- remove 1 from {team.blue}
- if victim is in {team.red.arena::*}:
- remove 1 from {team.red}
- if victim is in {team.yellow.arena::*}:
- remove 1 from {team.yellow}
- if victim is in {team.green.arena::*}:
- remove 1 from {team.green}
- else:
- send ""
- on damage of player:
- if {playing.%victim%.arena} is true:
- damage is more than victim's health
- cancel event
- heal victim
- teleport victim to {tsw.spect}
- add 1 to attacker's balance
- send "&6+1 Coins" to attacker
- send "&cYou Died!" to victim
- send victim title "&cYou Died" with subtitle "&fYou are Curently Spectator" for 4 seconds
- add 1 to {arena.%attacker%.kills}
- remove 1 from {arena.alive}
- remove victim from {arena.player.alive::*}
- broadcast "&7%victim% &ehas killed by &7%attacker%!"
- else:
- send ""
- on damage:
- damage cause is fall:
- if {playing.%victim%.lobby} is true:
- cancel event
- on damage:
- if {team1.%attacker%} is 1:
- if {team.%victim%} is 1:
- cancel event
- if {team2.%attacker%} is 2:
- if {team.%victim%} is 2:
- cancel event
- if {team3.%attacker%} is 3:
- if {team.%victim%} is 3:
- cancel event
- if {team4.%attacker%} is 3:
- if {team.%victim%} is 2:
- cancel event
- on break:
- if "%World of player%" is "%{TeamSkywars::Config::Options.WorldName}%":
- {playing.%player%.arena} is true:
- {tsw.game.ignore.locations::%location of event-block%} is not set
- add location of block to {tsw.game.broken.blocks::*}
- add type of block to {tsw.game.broken.type::*}
- set {tsw.game.ignore.locations::%location of event-block%} to true
- on place:
- if "%World of player%" is "%{TeamSkywars::Config::Options.WorldName}%":
- {playing.%player%.arena} is true:
- {tsw.games.ignore.locations:%location of event-block%} is not set
- add location of block to {tsw.games.place.blocks::*}
- add type of block to {tsw.games.place.type::*}
- set {tsw.games.ignore.locations::%location of event-block%} to true
- on chat:
- cancel event
- loop all players:
- if player is {team.blue.arena::*}:
- send "&9[Azul] &7%player%&7: &e%message%" to loop-player
- else:
- cancel event
- on chat:
- cancel event
- loop all players:
- if player is {team.red.arena::*}:
- send "&c[Red] &7%player%&7: &e%message%" to loop-player
- else:
- cancel event
- on chat:
- cancel event
- loop all players:
- if player is {team.yellow.arena::*}:
- send "&e[Yellow] &7%player%&7: &e%message%" to loop-player
- else:
- cancel event
- on chat:
- cancel event
- loop all players:
- if player is {team.green.arena::*}:
- send "&2[Green] &7%player%&7: &e%message%" to loop-player
- else:
- cancel event
- command /tswregen:
- executable by: console
- trigger:
- loop {tsw.game.broken.blocks::*}:
- set {_loc} to loop-value
- set block at {_loc} to {tsw.game.broken.type::%loop-index%}
- delete {tsw.game.broken.blocks::*}
- delete {tsw.game.broken.type::*}
- delete {tsw.game.ignore.locations::*}
- command /tswregen1:
- executable by: console
- trigger:
- loop {tsw.games.place.blocks::*}:
- set {_loc} to loop-value
- set block at {_loc} to air
- delete {tsw.games.place.blocks::*}
- delete {tsw.games.place.type::*}
- delete {tsw.games.ignore.locations::*}
- command /chest wand:
- trigger:
- set slot 0 of player to blaze rod named "&c&L>>&e&lAdd Chest&c&l<<"
- set {wand.chest} to true
- command /tswwand:
- trigger:
- set slot 0 of player to iron axe named "&bTeamSkyWars &eWand"
- on leftclick:
- if tool of player is blaze rod named "&c&L>>&e&lAdd Chest&c&l<<":
- if {wand.chest} is true:
- add target block to {tsw.refill.chests::*}
- send "&c>>>>>>>>>>>>>>>>>>&e&LChestAdded&c<<<<<<<<<<<<<<<<<<<<"
- on rightclick with blaze rod:
- if {wand.chest} is true:
- send "&6Stopped ChestAdd type /chest wand for add more Chests!"
- set {wand.chest} to false
- set slot 0 of player to air
- on rightclick:
- if tool of player is iron axe named "&bTeamSkyWars &eWand":
- set {tsw.loc1} to location of player
- send "&eLoc 1 SuccesFull set to %location of player%"
- on click:
- if tool of player is iron axe named "&bTeamSkyWars &eWand":
- set {tsw.loc2} to location of player
- send "&eLoc 2 SuccesFull set to %location of player%"
- on break:
- if {wand.chest} is true:
- cancel event
- send " &7RightClick for Finish Chest Add"
- on script load:
- send "&8[&bTeamSkyWars&8] &ePlugin Developeed by FilipeNock!" to console
- send "&8[&bTeamSkyWars&8] &8www.youtube.com/filipenock!" to console
- send "&8[&bTeamSkyWars&8] &eStarting Plugin....." to console
- send "&8[&bTeamSkyWars&8] &eFiles has been Created!" to console
- #=============================EnderPearlCountdowns================================
- on rightclick with ender pearl:
- if {ec.%player%} is true:
- send "&cwait %{ec.time.%player%}% seconds for use enderpearl"
- set name of tool to "&c%{ec.time.%player%}% restantes"
- cancel event
- stop
- else:
- set {ec.time.%player%} to 59 seconds
- set {ec.%player%} to true
- wait 16 seconds
- set {ec.%player%} to false
- send "&eVoce Ja pode usar enderpearl Novamente."
- every 1 second:
- loop all players:
- if {ec.%loop-player%} is true:
- subtract 1 second from {ec.time.%loop-player%}
- #====================================ChestReffil=========================================
- command /chestrefill:
- executable by: console
- trigger:
- loop {tsw.refill.chests::*}:
- if block at loop-value is not a chest:
- remove loop-value from {tsw.refill.chests::*}
- else:
- set block at loop-value to air
- clear all entities
- set block at loop-value to chest
- chance of 80%:
- chance of 20%:
- add 1 diamond sword to slot 25 of block at loop-value
- chance of 50%:
- add 1 leather helmet to slot 25 of block at loop-value
- chance of 5%:
- add 1 diamond helmet to slot 25 of block at loop-value
- chance of 25%:
- add 1 gold helmet to slot 25 of block at loop-value
- chance of 80%:
- chance of 20%:
- add 1 iron boots to slot 12 of block at loop-value
- chance of 50%:
- add 1 leather boots to slot 12 of block at loop-value
- chance of 5%:
- add 1 diamond boots to slot 12 of block at loop-value
- chance of 25%:
- add 1 gold boots to slot 12 of block at loop-value
- chance of 80%:
- chance of 20%:
- add 1 iron chestplate to slot 13 of block at loop-value
- chance of 25%:
- add 1 gold chestplate to slot 13 of block at loop-value
- chance of 50%:
- add 1 leather chestplate to slot 13 of block at loop-value
- chance of 5%:
- add 1 diamond chestplate to slot 13 of block at loop-value
- chance of 80%:
- chance of 40%:
- add 1 wood sword to slot 11 of block at loop-value
- chance of 20%:
- add 1 gold sword to slot 11 of block at loop-value
- chance of 5%:
- add 1 diamond sword to slot 11 of block at loop-value
- chance of 20%:
- add 1 stone sword to slot 11 of block at loop-value
- chance of 15%:
- add 1 iron sword to slot 11 of block at loop-value
- chance of 90%:
- chance of 10%:
- add 42 oak wood to slot 7 of block at loop-value
- chance of 10%:
- add 36 oak wood to slot 7 of block at loop-value
- chance of 10%:
- add 31 oak wood to slot 7 of block at loop-value
- chance of 10%:
- add 46 oak wood to slot 7 of block at loop-value
- chance of 10%:
- add 61 oak wood to slot 7 of block at loop-value
- chance of 10%:
- add 30 oak wood to slot 7 of block at loop-value
- chance of 10%:
- add 37 oak wood to slot 7 of block at loop-value
- chance of 10%:
- add 43 oak wood to slot 7 of block at loop-value
- chance of 10%:
- add 32 oak wood to slot 7 of block at loop-value
- chance of 10%:
- add 29 oak wood to slot 7 of block at loop-value
- chance of 80%:
- chance of 20%:
- add 1 iron leggings to slot 9 of block at loop-value
- chance of 50%:
- add 1 leather leggings to slot 9 of block at loop-value
- chance of 5%:
- add 1 diamond leggings to slot 9 of block at loop-value
- chance of 25%:
- add 1 gold leggings to slot 9 of block at loop-value
- chance of 80%:
- chance of 10%:
- add 23 steak to slot 16 of block at loop-value
- chance of 10%:
- add 12 steak to slot 16 of block at loop-value
- chance of 10%:
- add 5 steak to slot 16 of block at loop-value
- chance of 10%:
- add 8 steak to slot 16 of block at loop-value
- chance of 10%:
- add 43 steak to slot 16 of block at loop-value
- chance of 10%:
- add 45 steak to slot 16 of block at loop-value
- chance of 10%:
- add 21 steak to slot 16 of block at loop-value
- chance of 10%:
- add 62 steak to slot 16 of block at loop-value
- chance of 10%:
- add 13 steak to slot 16 of block at loop-value
- chance of 10%:
- add 41 steak to slot 16 of block at loop-value
- chance of 70%:
- chance of 10%:
- add 3 snowball to slot 5 of block at loop-value
- chance of 10%:
- add 5 snowball to slot 5 of block at loop-value
- chance of 10%:
- add 12 snowball to slot 5 of block at loop-value
- chance of 10%:
- add 16 snowball to slot 5 of block at loop-value
- chance of 10%:
- add 8 snowball to slot 5 of block at loop-value
- chance of 10%:
- add 6 snowball to slot 5 of block at loop-value
- chance of 10%:
- add 4 snowball to slot 5 of block at loop-value
- chance of 10%:
- add 14 snowball to slot 5 of block at loop-value
- chance of 10%:
- add 15 snowball to slot 5 of block at loop-value
- chance of 10%:
- add 26 snowball to slot 5 of block at loop-value
- chance of 50%:
- chance of 10%:
- add 3 egg to slot 5 of block at loop-value
- chance of 10%:
- add 5 egg to slot 5 of block at loop-value
- chance of 10%:
- add 12 egg to slot 5 of block at loop-value
- chance of 10%:
- add 16 egg to slot 5 of block at loop-value
- chance of 10%:
- add 8 egg to slot 5 of block at loop-value
- chance of 10%:
- add 6 egg to slot 5 of block at loop-value
- chance of 10%:
- add 4 egg to slot 5 of block at loop-value
- chance of 10%:
- add 14 egg to slot 5 of block at loop-value
- chance of 10%:
- add 15 egg to slot 5 of block at loop-value
- chance of 10%:
- add 26 egg to slot 5 of block at loop-value
- chance of 35%:
- add 1 golden apple to slot 2 of block at loop-value
- chance of 80%:
- chance of 10%:
- add 26 arrow to slot 5 of block at loop-value
- chance of 10%:
- add 7 arrow to slot 5 of block at loop-value
- chance of 10%:
- add 18 arrow to slot 5 of block at loop-value
- chance of 10%:
- add 43 arrow to slot 5 of block at loop-value
- chance of 10%:
- add 63 arrow to slot 5 of block at loop-value
- chance of 10%:
- add 4 arrow to slot 5 of block at loop-value
- chance of 10%:
- add 1 arrow to slot 5 of block at loop-value
- chance of 10%:
- add 24 arrow to slot 5 of block at loop-value
- chance of 10%:
- add 46 arrow to slot 5 of block at loop-value
- chance of 10%:
- add 36 arrow to slot 5 of block at loop-value
Advertisement
Add Comment
Please, Sign In to add comment