on script unload: send "[DIA Skywars] Disabling DIA Skywars v%{skywars.version}%" to console on script load: set {skywars.version} to "1.1" send "[DIA Skywars] Enabling DIA Skywars v%{skywars.version}%" to console set {_skywars.version.web::*} to contents from url "%uncolored ""https://pastebin.com/raw/C6PqPhzL""%" wait 2 ticks if yaml value "Config.notifyUpdates" from "skywars-config" is true: if {_skywars.version.web::1} is not {skywars.version}: send "[DIA Skywars] A new update has been released, download it from the web! https://www.spigotmc.org/resources/authors/wcrazy_.966968/" to console on load: if file "plugins/Skywars/config.yml" doesn't exist: wait 4 ticks send "[DIA Skywars] Creating config..." to console load yaml "plugins/Skywars/config.yml" as "skywars-config" set yaml value "Config.notifyUpdates" from "skywars-config" to true set yaml value "Config.setupMode" from "skywars-config" to "MULTIARENA" set yaml value "Config.lobbyServer" from "skywars-config" to "Lobby" set yaml value "Config.randomItemsInOneChest" from "skywars-config" to 5 set yaml value "Config.arenaChestRefill" from "skywars-config" to 150 set yaml value "Config.arenaEnd" from "skywars-config" to 300 set yaml value "Config.startGameChat" from "skywars-config" to true set yaml value "Config.startGameTitle" from "skywars-config" to true set yaml value "Config.startGameSubtitle" from "skywars-config" to true set yaml value "Config.enableFallDamage" from "skywars-config" to false set yaml value "Config.enableScoreboard" from "skywars-config" to true set yaml value "Config.loseHungerInArena" from "skywars-config" to false set yaml list "Config.allowedCommandsInArena" from "skywars-config" to "skywars" and "sw" and "msg" and "r" save yaml "skywars-config" load yaml "plugins/Skywars/config.yml" as "skywars-config" wait 2 ticks if file "plugins/Skywars/messages.yml" doesn't exist: wait 4 ticks send "[DIA Skywars] Creating messages..." to console load yaml "plugins/Skywars/messages.yml" as "skywars-messages" set yaml value "Messages.prefix" from "skywars-messages" to "&8[&2DIA Skywars&8]" set yaml value "Messages.noperms" from "skywars-messages" to "&r &cYou are not permissions to this!" set yaml value "Messages.notallowed" from "skywars-messages" to "&r &cYou are entered an not allowed command!" set yaml value "Messages.reload" from "skywars-messages" to "&r &aYou are reloaded the skript!" set yaml value "Messages.playerjoin" from "skywars-messages" to "&r &a &ajoined &fthe arena. &7(/)" set yaml value "Messages.playerleft" from "skywars-messages" to "&r &a &cleft &fthe arena. &7(/)" set yaml value "Messages.playerleftserver" from "skywars-messages" to "&r &a &cdisconnect &fthe server." set yaml value "Messages.wingame" from "skywars-messages" to "&r &a &ewin &fthe game." set yaml value "Messages.endgame" from "skywars-messages" to "&r &fArena &cended &fthere is no winner." set yaml value "Messages.chestrefill" from "skywars-messages" to "&r &fChest has been &arefilled&f." set yaml value "Messages.arenaisfull" from "skywars-messages" to "&r &cArena is full." set yaml value "Messages.arenaalreadystart" from "skywars-messages" to "&r &cArena already started." set yaml value "Messages.killplayer" from "skywars-messages" to "&r &a &fwas been killed by &e&f." set yaml value "Messages.killplayershoot" from "skywars-messages" to "&r &a &fwas been shooted by &e&f." set yaml value "Messages.killplayervoid" from "skywars-messages" to "&r &a &fwas been killed by &evoid&f." set yaml value "Messages.killplayerknockedvoid" from "skywars-messages" to "&r &a &fwas been knocked to the void by &e&f." set yaml value "Messages.playerkitselect" from "skywars-messages" to "&r &fSelected kit: &a" set yaml value "Messages.playerkitunselect" from "skywars-messages" to "&r &fYou &cunselected &fthe kit." set yaml value "Messages.notinarena" from "skywars-messages" to "&r &cYou are not in the arena." set yaml value "Messages.alreadyinarena" from "skywars-messages" to "&r &cYou are already in the arena." set yaml value "Messages.arenaalreadyexist" from "skywars-messages" to "&r &cArena already exist." set yaml value "Messages.arenaisnotexists" from "skywars-messages" to "&r &cArena is not exist." set yaml value "Messages.arenacreate" from "skywars-messages" to "&r &aArena was been created." set yaml value "Messages.arenaremove" from "skywars-messages" to "&r &cArena was been removed." set yaml value "Messages.arenasetlobby" from "skywars-messages" to "&r &aArena lobby was been set." set yaml value "Messages.arenasetleave" from "skywars-messages" to "&r &aArena leave was been set." set yaml value "Messages.arenasetdeathlimit" from "skywars-messages" to "&r &aArena death limit was been set." set yaml value "Messages.arenaminplayer" from "skywars-messages" to "&r &aArena min players was been set." set yaml value "Messages.arenamaxplayer" from "skywars-messages" to "&r &aArena max players was been set." set yaml value "Messages.arenaspawn" from "skywars-messages" to "&r &aArena spawn &2 &awas been set." set yaml value "Messages.arenacorner" from "skywars-messages" to "&r &aArena corner &2 &awas been set." set yaml value "Messages.chestadd" from "skywars-messages" to "&r &aArena chest &2 &awas been added." set yaml value "Messages.arenasetdeathlimithigh" from "skywars-messages" to "&r &aArena High Build Limit was been set." set yaml value "Messages.arenasetdeathlimitlow" from "skywars-messages" to "&r &aArena Low Build Limit was been set." set yaml value "Messages.kitcreate" from "skywars-messages" to "&r &aKit was been created." set yaml value "Messages.kitremove" from "skywars-messages" to "&r &cKit was been removed." set yaml value "Messages.kitloaded" from "skywars-messages" to "&r &aKit was been loaded." set yaml value "Messages.kitalreadyexist" from "skywars-messages" to "&r &cKit already exist." set yaml value "Messages.kitisnotexist" from "skywars-messages" to "&r &cKit is not exist." set yaml value "Messages.lobby.timetostart" from "skywars-messages" to 11 set yaml value "Messages.lobby.chat10" from "skywars-messages" to "&r &fGame started in &a10 &fseconds." set yaml value "Messages.lobby.title10" from "skywars-messages" to "&c10" set yaml value "Messages.lobby.subtitle10" from "skywars-messages" to "&aGame started in:" set yaml value "Messages.lobby.chat9" from "skywars-messages" to "&r &fGame started in &a9 &fseconds." set yaml value "Messages.lobby.title9" from "skywars-messages" to "&c9" set yaml value "Messages.lobby.subtitle9" from "skywars-messages" to "&aGame started in:" set yaml value "Messages.lobby.chat8" from "skywars-messages" to "&r &fGame started in &a8 &fseconds." set yaml value "Messages.lobby.title8" from "skywars-messages" to "&c8" set yaml value "Messages.lobby.subtitle8" from "skywars-messages" to "&aGame started in:" set yaml value "Messages.lobby.chat7" from "skywars-messages" to "&r &fGame started in &a7 &fseconds." set yaml value "Messages.lobby.title7" from "skywars-messages" to "&c7" set yaml value "Messages.lobby.subtitle7" from "skywars-messages" to "&aGame started in:" set yaml value "Messages.lobby.chat6" from "skywars-messages" to "&r &fGame started in &a6 &fseconds." set yaml value "Messages.lobby.title6" from "skywars-messages" to "&c6" set yaml value "Messages.lobby.subtitle6" from "skywars-messages" to "&aGame started in:" set yaml value "Messages.lobby.chat5" from "skywars-messages" to "&r &fGame started in &a5 &fseconds." set yaml value "Messages.lobby.title5" from "skywars-messages" to "&c➎" set yaml value "Messages.lobby.subtitle5" from "skywars-messages" to "&aGame started in:" set yaml value "Messages.lobby.chat4" from "skywars-messages" to "&r &fGame started in &a4 &fseconds." set yaml value "Messages.lobby.title4" from "skywars-messages" to "&c➍" set yaml value "Messages.lobby.subtitle4" from "skywars-messages" to "&aGame started in:" set yaml value "Messages.lobby.chat3" from "skywars-messages" to "&r &fGame started in &a3 &fseconds." set yaml value "Messages.lobby.title3" from "skywars-messages" to "&6➌" set yaml value "Messages.lobby.subtitle3" from "skywars-messages" to "&aGame started in:" set yaml value "Messages.lobby.chat2" from "skywars-messages" to "&r &fGame started in &a2 &fseconds." set yaml value "Messages.lobby.title2" from "skywars-messages" to "&6➋" set yaml value "Messages.lobby.subtitle2" from "skywars-messages" to "&aGame started in:" set yaml value "Messages.lobby.chat1" from "skywars-messages" to "&r &fGame started in &a1 &fsecond." set yaml value "Messages.lobby.title1" from "skywars-messages" to "&e➊" set yaml value "Messages.lobby.subtitle1" from "skywars-messages" to "&aGame started in:" set yaml value "Messages.lobby.chat0" from "skywars-messages" to "&r &aGame started!" set yaml value "Messages.lobby.title0" from "skywars-messages" to "&aGame started!" set yaml value "Messages.lobby.subtitle0" from "skywars-messages" to "&r" set yaml list "Messages.help" from "skywars-messages" to "&8&m----------&r &2Skywars &8&m----------&r" and "&r" and "&r &a/skywars help arena" and "&r &a/skywars help kit" and "&r &a/skywars help player" and "&r &a/skywars help admin" and "&r" set yaml list "Messages.helpArena" from "skywars-messages" to "&8&m----------&r &2Skywars &8&m----------&r" and "&r" and "&r &a/skywars arena create " and "&r &a/skywars arena remove " and "&r &a/skywars arena setLobby " and "&r &a/skywars arena setLeave " and "&r &a/skywars arena setSpawn " and "&r &a/skywars arena setMinPlayers " and "&r &a/skywars arena setMaxPlayers " and "&r &a/skywars arena addChest " and "&r &a/skywars arena setCorner <1/2>" and "&r &a/skywars arena setBuildLimit " and "&r &a/skywars arena setDeathLimit " and "&r &a/skywars arena list" and "&r" set yaml list "Messages.helpKits" from "skywars-messages" to "&8&m----------&r &2Skywars &8&m----------&r" and "&r" and "&r &a/skywars kits create " and "&r &a/skywars kits remove " and "&r &a/skywars kits load " and "&r &a/skywars kits list" and "&r" set yaml list "Messages.helpPlayer" from "skywars-messages" to "&8&m----------&r &2Skywars &8&m----------&r" and "&r" and "&r &a/skywars join " and "&r &a/skywars leave" and "&r &a/skywars setkit " and "&r &a/skywars unsetkit" and "&r &a/skywars stats" and "&r" set yaml list "Messages.helpAdmin" from "skywars-messages" to "&8&m----------&r &2Skywars &8&m----------&r" and "&r" and "&r &a/skywars reload" and "&r" set yaml list "Messages.stats" from "skywars-messages" to "&8&m----------&r &2Skywars STATS &8&m----------&r" and "&r" and "&r &aWins: &f" and "&r &aLosses: &f" and "&r &aKills: &f" and "&r &aDeaths: &f" and "&r" save yaml "skywars-messages" wait 6 ticks load yaml "plugins/Skywars/messages.yml" as "skywars-messages" wait 2 ticks if file "plugins/Skywars/chests.yml" doesn't exist: wait 4 ticks send "[DIA Skywars] Creating chests..." to console load yaml "plugins/Skywars/chests.yml" as "skywars-chests" set yaml list "Chests.1.1" from "skywars-chests" to "32 oak planks" and "iron sword" and "leather boots" and "splash potion of speed" and "16 stone" and "stone axe" and "iron pickaxe" set yaml list "Chests.1.2" from "skywars-chests" to "14 oak planks" and "stone sword" and "iron boots" and "splash potion of poison" and "12 stone" and "iron axe" and "stone pickaxe" set yaml list "Chests.1.3" from "skywars-chests" to "14 oak planks" and "stone sword" and "iron boots" and "splash potion of poison" and "12 stone" and "iron axe" and "stone pickaxe" set yaml list "Chests.1.4" from "skywars-chests" to "14 oak planks" and "stone sword" and "iron helmet" and "splash potion of poison" and "12 stone" and "iron axe" and "iron pickaxe" set yaml list "Chests.1.5" from "skywars-chests" to "14 oak planks" and "stone sword" and "leather helmet" and "splash potion of poison" and "12 stone" and "iron axe" and "stone pickaxe" set yaml list "Chests.2.1" from "skywars-chests" to "12 oak planks" and "diamond sword" and "diamond leggings" and "splash potion of speed" and "16 stone" and "stone axe" and "iron pickaxe" set yaml list "Chests.2.2" from "skywars-chests" to "64 oak planks" and "iron sword" and "iron leggings" and "splash potion of speed" and "16 stone" and "stone axe" and "stone pickaxe" set yaml list "Chests.2.3" from "skywars-chests" to "4 oak planks" and "stone sword" and "leather leggings" and "potion of speed" and "16 stone" and "stone axe" and "iron pickaxe" set yaml list "Chests.2.4" from "skywars-chests" to "16 oak planks" and "iron sword" and "golden leggings" and "potion of speed" and "16 stone" and "diamond axe" and "stone pickaxe" set yaml list "Chests.2.5" from "skywars-chests" to "8 oak planks" and "iron sword" and "leather leggings" and "splash potion of speed" and "32 stone" and "iron axe" and "iron pickaxe" save yaml "skywars-chests" load yaml "plugins/Skywars/chests.yml" as "skywars-chests" wait 2 ticks if file "plugins/Skywars/scoreboard.yml" doesn't exist: wait 4 ticks send "[DIA Skywars] Creating scoreboard..." to console load yaml "plugins/Skywars/scoreboard.yml" as "skywars-scoreboard" set yaml value "Lobby.title" from "skywars-scoreboard" to "&2&lDIA Skywars" set yaml list "Lobby.rows" from "skywars-scoreboard" to "&r&c" and "&r &fNickname: &a&r" and "&r &fArena: &a&r" and "&r &fKills: &a&r" and "&r &fDeaths: &a&r" and "&r &fWins: &a&r" and "&r &fLosses: &a&r" and "&r&e" wait 1 tick set yaml value "Game.title" from "skywars-scoreboard" to "&2&lDIA Skywars" set yaml list "Game.rows" from "skywars-scoreboard" to "&r&c" and "&r &fPlayer left: &a&r" and "&r &fArena: &a&r" and "&r &fKills: &a&r" and "&r&f" and "&r &fTime left: &a&r" and "&r&e" save yaml "skywars-scoreboard" load yaml "plugins/Skywars/scoreboard.yml" as "skywars-scoreboard" wait 2 ticks if file "plugins/Skywars/items.yml" doesn't exist: wait 4 ticks send "[DIA Skywars] Creating items..." to console load yaml "plugins/Skywars/items.yml" as "skywars-items" set yaml value "KitSelector.enable" from "skywars-items" to true set yaml value "KitSelector.name" from "skywars-items" to "&eKit Selector &f(Right click)" set yaml value "KitSelector.item" from "skywars-items" to "NETHER STAR" set yaml value "KitSelector.slot" from "skywars-items" to 0 set yaml value "Leave.enable" from "skywars-items" to true set yaml value "Leave.name" from "skywars-items" to "&c&lLEAVE ARENA" set yaml value "Leave.item" from "skywars-items" to "BED" set yaml value "Leave.slot" from "skywars-items" to 8 save yaml "skywars-items" wait 6 ticks load yaml "plugins/Skywars/items.yml" as "skywars-items" wait 2 ticks if file "plugins/Skywars/gui.yml" doesn't exist: wait 4 ticks send "[DIA Skywars] Creating gui..." to console load yaml "plugins/Skywars/gui.yml" as "skywars-gui" set yaml value "GUI.title" from "skywars-gui" to "&8Kit Selector" set yaml value "GUI.rows" from "skywars-gui" to 4 set yaml value "GUI.unsetkit.name" from "skywars-gui" to "&cUnset kit" set yaml value "GUI.unsetkit.item" from "skywars-gui" to "GRAY DYE" set yaml value "INFO.kitsingui" from "skywars-gui" to "ALL KITS IN GUI YOU CAN EDIT IN CODE LINE 1000+-" save yaml "skywars-gui" wait 6 ticks load yaml "plugins/Skywars/gui.yml" as "skywars-gui" wait 2 ticks if file "plugins/Skywars/playerdata/" doesn't exist: create folder "plugins/Skywars/playerdata/" wait 2 ticks load all yaml from directory "plugins/Skywars/playerdata/" wait 2 ticks if file "plugins/Skywars/kits/" doesn't exist: create folder "plugins/Skywars/kits/" wait 2 ticks load all yaml from directory "plugins/Skywars/kits/" loop {skywars-kits::*}: if file "plugins/Skywars/kits/%loop-value%.yml" doesn't exist: remove loop-value from {skywars-kits::*} wait 2 ticks load all yaml from directory "plugins/Skywars/kits/" if file "plugins/Skywars/arenas/" doesn't exist: create folder "plugins/Skywars/arenas/" wait 2 ticks load all yaml from directory "plugins/Skywars/arenas/" loop {skywars-arenas::*}: if file "plugins/Skywars/arenas/%loop-value%.yml" doesn't exist: remove loop-value from {skywars-arenas::*} wait 2 ticks load all yaml from directory "plugins/Skywars/arenas/" wait 2 ticks loop {skywars-arenas::*}: set {skywars.arenastart.%loop-value%} to false if {skywars.arena.%loop-value-1%.truefalsecr} is not set: set {skywars.arena.%loop-value-1%.truefalsecr} to true if regenerator with id "%loop-value%" does not exist: set {skywars.arenascorner.%loop-value%.1} to yaml value "ArenaBuilder.1" from "plugins/Skywars/arenas/%loop-value%.yml" set {skywars.arenascorner.%loop-value%.2} to yaml value "ArenaBuilder.2" from "plugins/Skywars/arenas/%loop-value%.yml" create a regenerator with ID "%loop-value%" from {skywars.arenascorner.%loop-value%.1} to {skywars.arenascorner.%loop-value%.2} wait 5 ticks send "[DIA Skywars] Arena %loop-value% has been loaded." to console on load: wait 3 seconds set {skywars.itemsinonechest} to yaml value "Config.randomItemsInOneChest" from "skywars-config" wait 1 tick set {skywars.msg.noperms} to yaml value "Messages.noperms" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.noperms} wait 1 tick set {skywars.msg.reload} to yaml value "Messages.reload" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.reload} wait 1 tick set {skywars.msg.notallowed} to yaml value "Messages.notallowed" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.notallowed} wait 1 tick set {skywars.msg.kitcreate} to yaml value "Messages.kitcreate" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.kitcreate} wait 1 tick set {skywars.msg.kitremove} to yaml value "Messages.kitremove" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.kitremove} wait 1 tick set {skywars.msg.kitloaded} to yaml value "Messages.kitloaded" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.kitloaded} wait 1 tick set {skywars.msg.kitalreadyexist} to yaml value "Messages.kitalreadyexist" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.kitalreadyexist} wait 1 tick set {skywars.msg.kitisnotexist} to yaml value "Messages.kitisnotexist" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.kitisnotexist} wait 1 tick set {skywars.msg.arenacreate} to yaml value "Messages.arenacreate" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenacreate} wait 1 tick set {skywars.msg.arenaremove} to yaml value "Messages.arenaremove" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaremove} wait 1 tick set {skywars.msg.arenasetleave} to yaml value "Messages.arenasetleave" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenasetleave} wait 1 tick set {skywars.msg.arenasetlobby} to yaml value "Messages.arenasetlobby" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenasetlobby} wait 1 tick set {skywars.msg.arenaisnotexists} to yaml value "Messages.arenaisnotexists" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaisnotexists} wait 1 tick set {skywars.msg.arenaalreadyexist} to yaml value "Messages.arenaalreadyexist" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaalreadyexist} wait 1 tick set {skywars.msg.arenaisfull} to yaml value "Messages.arenaisfull" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaisfull} wait 1 tick set {skywars.msg.arenasetdeathlimit} to yaml value "Messages.arenasetdeathlimit" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenasetdeathlimit} wait 1 tick set {skywars.msg.alreadyinarena} to yaml value "Messages.alreadyinarena" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.alreadyinarena} wait 1 tick set {skywars.msg.notinarena} to yaml value "Messages.notinarena" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.notinarena} wait 1 tick set {skywars.msg.arenaminplayer} to yaml value "Messages.arenaminplayer" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaminplayer} wait 1 tick set {skywars.msg.arenamaxplayer} to yaml value "Messages.arenamaxplayer" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenamaxplayer} wait 1 tick set {skywars.msg.arenasave} to yaml value "Messages.arenasave" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenasave} wait 1 tick set {skywars.msg.arenaremovesave} to yaml value "Messages.arenaremovesave" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaremovesave} wait 1 tick set {skywars.msg.playerkitunselect} to yaml value "Messages.playerkitunselect" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.playerkitunselect} wait 1 tick set {skywars.msg.chestrefill} to yaml value "Messages.chestrefill" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.chestrefill} wait 1 tick command /skywars [] [] [] []: aliases: /sw trigger: # Help messages if arg-1 is not set: send colored yaml list "Messages.help" from "skywars-messages" stop if arg-1 is "help": if arg-2 is not set: send colored yaml list "Messages.help" from "skywars-messages" stop if arg-2 is "arena": if player has permission "skywars.admin" or "skywars.arena": send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "kit" or "kits": if player has permission "skywars.admin" or "skywars.kits": send colored yaml list "Messages.helpKits" from "skywars-messages" stop if arg-2 is "player": send colored yaml list "Messages.helpPlayer" from "skywars-messages" stop if arg-2 is "admin": if player has permission "skywars.admin": send colored yaml list "Messages.helpAdmin" from "skywars-messages" stop # Player commands if arg-1 is "join": if arg-2 is not set: send "%{skywars.msg.arenaisnotexists}%" set {skywars.inarena.%player%} to false stop else: if file "plugins/Skywars/arenas/%arg-2%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" else: if {skywars.inarena.%player%} is false: if {skywars.arenastart.%arg-2%} is true: set {skywars.arenaalreadystart.%player%} to yaml value "Messages.arenaalreadystart" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.arenaalreadystart.%player%} send "%{skywars.arenaalreadystart.%player%}%" stop set {skywars.arena.%arg-2%.maxplayers} to yaml value "Arena.maxplayers" from "plugins/Skywars/arenas/%arg-2%.yml" if {skywars.arena.%arg-2%.status} is not set: set {skywars.arena.%arg-2%.status} to 0 if {skywars.arena.%arg-2%.status} is {skywars.arena.%arg-2%.maxplayers}: send "%{skywars.msg.arenaisfull}%" stop teleport player to yaml value "Arena.lobby" from "plugins/Skywars/arenas/%arg-2%.yml" clear player's inventory set player's gamemode to survival clear {skywars.voidKillP.%player%} set {skywars.inarena.%player%} to true set {skywars.inlobby.%player%} to true set {skywars.arenacanstart.%arg-2%} to true set {skywars.joinedarena.%player%} to arg-2 add player to {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} wait 4 ticks if yaml value "KitSelector.enable" from "skywars-items" is true: set {sw.lobbyitem.kitselector.name} to yaml value "KitSelector.name" from "skywars-items" set {sw.lobbyitem.kitselector.slot} to yaml value "KitSelector.slot" from "skywars-items" set {sw.lobbyitem.kitselector.item} to yaml value "KitSelector.item" from "skywars-items" set {sw.lobbyitem.kitselector.item2} to {sw.lobbyitem.kitselector.item} parsed as item set slot {sw.lobbyitem.kitselector.slot} of player to {sw.lobbyitem.kitselector.item2} named "%{sw.lobbyitem.kitselector.name}%" if yaml value "Leave.enable" from "skywars-items" is true: set {sw.lobbyitem.leave.name} to yaml value "Leave.name" from "skywars-items" set {sw.lobbyitem.leave.slot} to yaml value "Leave.slot" from "skywars-items" set {sw.lobbyitem.leave.item} to yaml value "Leave.item" from "skywars-items" set {sw.lobbyitem.leave.item2} to {sw.lobbyitem.leave.item} parsed as item set slot {sw.lobbyitem.leave.slot} of player to {sw.lobbyitem.leave.item2} named "%{sw.lobbyitem.leave.name}%" set {skywars.joinmsgnow.%player%} to yaml value "Messages.playerjoin" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.joinmsgnow.%player%} replace all "" with "%player%" in {skywars.joinmsgnow.%player%} replace all "" with "%amount of {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*}%" in {skywars.joinmsgnow.%player%} replace all "" with "%{skywars.arena.%{skywars.joinedarena.%player%}%.maxplayers}%" in {skywars.joinmsgnow.%player%} wait 2 ticks if yaml value "Config.enableScoreboard" from "skywars-config" is true: create new stylish scoreboard named "skywars-%uuid of player%" set stylish scoreboard of player to "skywars-%uuid of player%" set {skywars.sb.%uuid of player%::*} to yaml list "Lobby.rows" from "skywars-scoreboard" set {skywars.sb.%uuid of player%.maxslot} to size of {skywars.sb.%uuid of player%::*} set {skywars.sb.%uuid of player%.slot} to 1 set {skywars.sb.%uuid of player%.nowslot} to size of {skywars.sb.%uuid of player%::*} wait 2 ticks loop {skywars.sb.%uuid of player%.maxslot} times: set {skywars.kills.%uuid of player%} to yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of player%.yml" set {skywars.deaths.%uuid of player%} to yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of player%.yml" replace all "" with "%{skywars.kills.%uuid of player%}%" in {skywars.sb.%uuid of player%::%{skywars.sb.%uuid of player%.slot}%} replace all "" with "%{skywars.deaths.%uuid of player%}%" in {skywars.sb.%uuid of player%::%{skywars.sb.%uuid of player%.slot}%} replace all "" with "%{skywars.wins.%uuid of player%}%" in {skywars.sb.%uuid of player%::%{skywars.sb.%uuid of player%.slot}%} replace all "" with "%{skywars.losses.%uuid of player%}%" in {skywars.sb.%uuid of player%::%{skywars.sb.%uuid of player%.slot}%} replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.sb.%uuid of player%::%{skywars.sb.%uuid of player%.slot}%} replace all "" with "%player%" in {skywars.sb.%uuid of player%::%{skywars.sb.%uuid of player%.slot}%} replace all "" with "%{skywars.joinedarena.%player%}%" in {skywars.sb.%uuid of player%::%{skywars.sb.%uuid of player%.slot}%} create a new id based score "skywars-slot-%uuid of player%-%{skywars.sb.%uuid of player%.nowslot}%" with text "%colored {skywars.sb.%uuid of player%::%{skywars.sb.%uuid of player%.slot}%}%" slot {skywars.sb.%uuid of player%.nowslot} for stylish scoreboard "skywars-%uuid of player%" add 1 to {skywars.sb.%uuid of player%.slot} set {skywars.sb.%uuid of player%.nowslot} to {skywars.sb.%uuid of player%.nowslot} - 1 set {skywars.sb.%uuid of player%.title} to yaml value "Lobby.title" from "skywars-scoreboard" set title of stylish scoreboard "skywars-%uuid of player%" to "%{skywars.sb.%uuid of player%.title}%" set {skywars.dosomethink.%{skywars.joinedarena.%player%}%} to true set {skywars.cancount.%{skywars.joinedarena.%player%}%} to false set {skywars.arenastart.%{skywars.joinedarena.%player%}%} to false send "%{skywars.joinmsgnow.%player%}%" to {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} stop else: send "%{skywars.msg.alreadyinarena}%" stop if arg-1 is "leave": if {skywars.inarena.%player%} is true: if yaml value "Config.setupMode" from "skywars-config" is "BUNGEE": set {skywars.server.lobbyServer} to yaml value "Config.lobbyServer" from "skywars-config" remove player from {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} clear player's inventory set player's gamemode to survival remove all potion effects from player set player's health to 20 set player's hunger to 20 set {skywars.inarena.%player%} to false set {skywars.inlobby.%player%} to false bungeecord connect player to "%{skywars.server.lobbyServer}%" stop if arg-2 is not set: execute player command "/skywars leave %{skywars.joinedarena.%player%}%" stop else: teleport player to yaml value "Arena.leave" from "plugins/Skywars/arenas/%{skywars.joinedarena.%player%}%.yml" clear player's inventory set player's gamemode to survival remove all potion effects from player set player's health to 20 set player's hunger to 20 show action bar with "" to player if yaml value "Config.enableScoreboard" from "skywars-config" is true: set {skywars.sb.%uuid of player%::*} to yaml list "Scoreboard.rows" from "skywars-scoreboard" set {skywars.sb.%uuid of player%.slot} to 1 loop {skywars.sb.%uuid of player%::*}: delete the id based score "skywars-%uuid of player%-%{skywars.sb.%uuid of player%.slot}%" in stylish scoreboard "skywars-%uuid of player%" add 1 to {skywars.sb.%uuid of player%.slot} delete stylish scoreboard "skywars-%uuid of player%" if {skywars.inlobby.%player%} is true: set {skywars.leftmsgnow.%player%} to yaml value "Messages.playerleft" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.leftmsgnow.%player%} replace all "" with "%player%" in {skywars.leftmsgnow.%player%} replace all "" with "%amount of {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} - 1%" in {skywars.leftmsgnow.%player%} replace all "" with "%{skywars.arena.%{skywars.joinedarena.%player%}%.maxplayers}%" in {skywars.leftmsgnow.%player%} send "%{skywars.leftmsgnow.%player%}%" to {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} if {skywars.inlobby.%player%} is false: set {skywars.leftmsgnow.%player%} to yaml value "Messages.playerleftserver" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.leftmsgnow.%player%} replace all "" with "%player%" in {skywars.leftmsgnow.%player%} send "%{skywars.leftmsgnow.%player%}%" to {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} set {skywars.updatestats.%player%} to yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" set yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" to {skywars.updatestats.%player%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of player%.yml" wait 1 tick remove player from {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} set {skywars.inarena.%player%} to false set {skywars.inlobby.%player%} to false stop else: send "%{skywars.msg.notinarena}%" stop if arg-1 is "setkit": if arg-2 is set: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: if file "plugins/Skywars/kits/%arg-2%.yml" doesn't exist: send "%{skywars.msg.kitisnotexist}%" stop else: set {skywars.msg.playerkitselect} to yaml value "Messages.playerkitselect" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.playerkitselect} replace all "" with "%arg-2%" in {skywars.msg.playerkitselect} set {skywars.kit.%player%} to "%arg-2%" send "%{skywars.msg.playerkitselect}%" stop else: send "%{skywars.msg.alreadyinarena}%" stop else: send "%{skywars.msg.notinarena}%" stop else: send colored yaml list "Messages.helpPlayer" from "skywars-messages" stop if arg-1 is "unsetkit": if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: clear {skywars.kit.%player%} send "%{skywars.msg.playerkitunselect}%" stop else: send "%{skywars.msg.notinarena}%" stop else: send colored yaml list "Messages.helpPlayer" from "skywars-messages" stop if arg-1 is "stats": set {skywars.statsmessage.%uuid of player%::*} to yaml list "Messages.stats" from "skywars-messages" set {skywars.statslot.%uuid of player%} to 1 loop {skywars.statsmessage.%uuid of player%::*}: set {skywars.kills.%uuid of player%} to yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of player%.yml" set {skywars.deaths.%uuid of player%} to yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of player%.yml" set {skywars.wins.%uuid of player%} to yaml value "Data.Wins" from "plugins/Skywars/playerdata/%uuid of player%.yml" set {skywars.losses.%uuid of player%} to yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" replace all "" with "%{skywars.kills.%uuid of player%}%" in {skywars.statsmessage.%uuid of player%::%{skywars.statslot.%uuid of player%}%} replace all "" with "%{skywars.deaths.%uuid of player%}%" in {skywars.statsmessage.%uuid of player%::%{skywars.statslot.%uuid of player%}%} replace all "" with "%{skywars.wins.%uuid of player%}%" in {skywars.statsmessage.%uuid of player%::%{skywars.statslot.%uuid of player%}%} replace all "" with "%{skywars.losses.%uuid of player%}%" in {skywars.statsmessage.%uuid of player%::%{skywars.statslot.%uuid of player%}%} replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.statsmessage.%uuid of player%::%{skywars.statslot.%uuid of player%}%} send "%colored {skywars.statsmessage.%uuid of player%::%{skywars.statslot.%uuid of player%}%}%" add 1 to {skywars.statslot.%uuid of player%} stop # Admin commands if arg-1 is "reload": if (check [player has permission "skywars.admin"]) or (check [player has permission "skywars.reload"]) or (check [sender is console]): load yaml "plugins/Skywars/config.yml" as "skywars-config" wait 2 ticks load yaml "plugins/Skywars/messages.yml" as "skywars-messages" wait 2 ticks load yaml "plugins/Skywars/chests.yml" as "skywars-chests" wait 2 ticks load yaml "plugins/Skywars/items.yml" as "skywars-items" wait 2 ticks load yaml "plugins/Skywars/gui.yml" as "skywars-gui" wait 2 ticks load yaml "plugins/Skywars/scoreboard.yml" as "skywars-scoreboard" wait 2 ticks load all yaml from directory "plugins/Skywars/kits/" wait 2 ticks load all yaml from directory "plugins/Skywars/playerdata/" wait 2 ticks load all yaml from directory "plugins/Skywars/arenas/" wait 2 ticks set {skywars.itemsinonechest} to yaml value "Config.randomItemsInOneChest" from "skywars-config" wait 1 tick set {skywars.msg.noperms} to yaml value "Messages.noperms" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.noperms} wait 1 tick set {skywars.msg.reload} to yaml value "Messages.reload" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.reload} wait 1 tick set {skywars.msg.notallowed} to yaml value "Messages.notallowed" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.notallowed} wait 1 tick set {skywars.msg.kitcreate} to yaml value "Messages.kitcreate" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.kitcreate} wait 1 tick set {skywars.msg.kitremove} to yaml value "Messages.kitremove" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.kitremove} wait 1 tick set {skywars.msg.kitloaded} to yaml value "Messages.kitloaded" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.kitloaded} wait 1 tick set {skywars.msg.kitalreadyexist} to yaml value "Messages.kitalreadyexist" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.kitalreadyexist} wait 1 tick set {skywars.msg.kitisnotexist} to yaml value "Messages.kitisnotexist" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.kitisnotexist} wait 1 tick set {skywars.msg.arenacreate} to yaml value "Messages.arenacreate" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenacreate} wait 1 tick set {skywars.msg.arenaremove} to yaml value "Messages.arenaremove" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaremove} wait 1 tick set {skywars.msg.arenasetleave} to yaml value "Messages.arenasetleave" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenasetleave} wait 1 tick set {skywars.msg.arenasetlobby} to yaml value "Messages.arenasetlobby" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenasetlobby} wait 1 tick set {skywars.msg.arenaisnotexists} to yaml value "Messages.arenaisnotexists" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaisnotexists} wait 1 tick set {skywars.msg.arenaalreadyexist} to yaml value "Messages.arenaalreadyexist" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaalreadyexist} wait 1 tick set {skywars.msg.arenaisfull} to yaml value "Messages.arenaisfull" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaisfull} wait 1 tick set {skywars.msg.arenasetdeathlimit} to yaml value "Messages.arenasetdeathlimit" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenasetdeathlimit} wait 1 tick set {skywars.msg.alreadyinarena} to yaml value "Messages.alreadyinarena" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.alreadyinarena} wait 1 tick set {skywars.msg.notinarena} to yaml value "Messages.notinarena" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.notinarena} wait 1 tick set {skywars.msg.arenaminplayer} to yaml value "Messages.arenaminplayer" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaminplayer} wait 1 tick set {skywars.msg.arenamaxplayer} to yaml value "Messages.arenamaxplayer" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenamaxplayer} wait 1 tick set {skywars.msg.arenasave} to yaml value "Messages.arenasave" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenasave} wait 1 tick set {skywars.msg.arenaremovesave} to yaml value "Messages.arenaremovesave" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaremovesave} wait 1 tick set {skywars.msg.playerkitunselect} to yaml value "Messages.playerkitunselect" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.playerkitunselect} wait 1 tick set {skywars.msg.chestrefill} to yaml value "Messages.chestrefill" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.chestrefill} wait 1 tick if sender is console: send "%{skywars.msg.reload}%" to console if sender is player: send "%{skywars.msg.reload}%" # Kits Setup if arg-1 is "kits" or "kit": if player has permission "skywars.kits" or "skywars.admin": if arg-2 is not set: send colored yaml list "Messages.helpKits" from "skywars-messages" stop if arg-2 is "create": if arg-3 is set: if file "plugins/Skywars/kits/%arg-3%.yml" doesn't exist: set {skywars.slot} to 0 load yaml "plugins/Skywars/kits/%arg-3%.yml" as "plugins/Skywars/kits/%arg-3%.yml" set yaml value "Kit.slot-helmet" from "plugins/Skywars/kits/%arg-3%.yml" to player's helmet set yaml value "Kit.slot-chestplate" from "plugins/Skywars/kits/%arg-3%.yml" to player's chestplate set yaml value "Kit.slot-leggings" from "plugins/Skywars/kits/%arg-3%.yml" to player's legging set yaml value "Kit.slot-boots" from "plugins/Skywars/kits/%arg-3%.yml" to player's boots loop 36 times: set yaml value "Kit.slot-%{skywars.slot}%" from "plugins/Skywars/kits/%arg-3%.yml" to slot {skywars.slot} of player's inventory add 1 to {skywars.slot} save yaml "plugins/Skywars/kits/%arg-3%.yml" send "%{skywars.msg.kitcreate}%" add "%arg-3%" to {skywars-kits::*} stop else: send "%{skywars.msg.kitalreadyexist}%" stop else: send colored yaml list "Messages.helpKits" from "skywars-messages" stop if arg-2 is "remove": if arg-3 is set: if file "plugins/Skywars/kits/%arg-3%.yml" doesn't exist: send "%{skywars.msg.kitisnotexist}%" stop else: delete yaml "plugins/Skywars/kits/%arg-3%.yml" delete file "plugins/Skywars/kits/%arg-3%" remove "%arg-3%" from {skywars-kits::*} send "%{skywars.msg.kitremove}%" stop else: send colored yaml list "Messages.helpKits" from "skywars-messages" stop if arg-2 is "load": if arg-3 is set: if file "plugins/Skywars/kits/%arg-3%.yml" doesn't exist: send "%{skywars.msg.kitisnotexist}%" stop else: set {skywars.slot} to 0 set player's helmet to yaml value "Kit.slot-helmet" from "plugins/Skywars/kits/%arg-3%.yml" set player's chestplate to yaml value "Kit.slot-chestplate" from "plugins/Skywars/kits/%arg-3%.yml" set player's legging to yaml value "Kit.slot-leggings" from "plugins/Skywars/kits/%arg-3%.yml" set player's boots to yaml value "Kit.slot-boots" from "plugins/Skywars/kits/%arg-3%.yml" loop 36 times: set slot {skywars.slot} of player's inventory to yaml value "Kit.slot-%{skywars.slot}%" from "plugins/Skywars/kits/%arg-3%.yml" add 1 to {skywars.slot} send "%{skywars.msg.kitloaded}%" stop else: send colored yaml list "Messages.helpKits" from "skywars-messages" stop if arg-2 is "list": size of {skywars-kits::*} = 0: send "%{skywars.msg.kitisnotexist}%" stop size of {skywars-kits::*} > 0: send "&aAll Kits: &7(%size of {skywars-kits::*}%)" loop {skywars-kits::*}: send "&7- &2%loop-value% (ID: %loop-index%)" stop else: send "%{skywars.msg.noperms}%" stop # Arena Setup if arg-1 is "arena": if player has permission "skywars.admin" or "skywars.arena": if arg-2 is not set: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "create": if arg-3 is set: if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: load yaml "plugins/Skywars/arenas/%arg-3%.yml" as "plugins/Skywars/arenas/%arg-3%.yml" send "%{skywars.msg.arenacreate}%" add "%arg-3%" to {skywars-arenas::*} stop else: send "%{skywars.msg.arenaalreadyexist}%" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "remove": if arg-3 is set: if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: delete yaml "plugins/Skywars/arenas/%arg-3%.yml" delete regenerator with ID "%arg-3%" send "%{skywars.msg.arenaremove}%" remove "%arg-3%" from {skywars-arenas::*} stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "setlobby": if arg-3 is set: if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: set yaml value "Arena.lobby" from "plugins/Skywars/arenas/%arg-3%.yml" to location of player save yaml "plugins/Skywars/arenas/%arg-3%.yml" send "%{skywars.msg.arenasetlobby}%" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "setleave": if arg-3 is set: if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: set yaml value "Arena.leave" from "plugins/Skywars/arenas/%arg-3%.yml" to location of player save yaml "plugins/Skywars/arenas/%arg-3%.yml" send "%{skywars.msg.arenasetleave}%" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "setDeathLimit": if arg-3 is set: if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: set yaml value "Arena.deathLimit" from "plugins/Skywars/arenas/%arg-3%.yml" to y-coordinate of player's location save yaml "plugins/Skywars/arenas/%arg-3%.yml" send "%{skywars.msg.arenasetdeathlimit}%" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "setminplayers": if arg-3 is set: if arg-4 is set: if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: set yaml value "Arena.minplayers" from "plugins/Skywars/arenas/%arg-3%.yml" to arg-4 save yaml "plugins/Skywars/arenas/%arg-3%.yml" send "%{skywars.msg.arenaminplayer}%" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "setbuildlimit": if arg-3 is set: if arg-4 is "low": if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: set {skywars.msg.arenasetdeathlimitlow} to yaml value "Messages.arenasetdeathlimitlow" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenasetdeathlimitlow} set yaml value "Arena.buildLimitLow" from "plugins/Skywars/arenas/%arg-3%.yml" to y-coordinate of player's location save yaml "plugins/Skywars/arenas/%arg-3%.yml" send "%{skywars.msg.arenasetdeathlimitlow}%" stop else if arg-4 is "high": if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: set {skywars.msg.arenasetdeathlimithigh} to yaml value "Messages.arenasetdeathlimithigh" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenasetdeathlimithigh} set yaml value "Arena.buildLimitHigh" from "plugins/Skywars/arenas/%arg-3%.yml" to y-coordinate of player's location save yaml "plugins/Skywars/arenas/%arg-3%.yml" send "%{skywars.msg.arenasetdeathlimithigh}%" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "setcorner": if arg-3 is set: if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: if arg-4 is "1": set {skywars.msg.arenacorner} to yaml value "Messages.arenacorner" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenacorner} replace all "" with "1" in {skywars.msg.arenacorner} set yaml value "ArenaBuilder.1" from "plugins/Skywars/arenas/%arg-3%.yml" to location of player save yaml "plugins/Skywars/arenas/%arg-3%.yml" send "%{skywars.msg.arenacorner}%" stop else if arg-4 is "2": set {skywars.msg.arenacorner} to yaml value "Messages.arenacorner" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenacorner} replace all "" with "2" in {skywars.msg.arenacorner} set yaml value "ArenaBuilder.2" from "plugins/Skywars/arenas/%arg-3%.yml" to location of player save yaml "plugins/Skywars/arenas/%arg-3%.yml" send "%{skywars.msg.arenacorner}%" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "setmaxplayers": if arg-3 is set: if arg-4 is set: if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: set yaml value "Arena.maxplayers" from "plugins/Skywars/arenas/%arg-3%.yml" to arg-4 save yaml "plugins/Skywars/arenas/%arg-3%.yml" send "%{skywars.msg.arenamaxplayer}%" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "setspawn": if arg-3 is set: if arg-4 is set: if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: set yaml value "Spawn.%arg-4%" from "plugins/Skywars/arenas/%arg-3%.yml" to location of player save yaml "plugins/Skywars/arenas/%arg-3%.yml" set {skywars.msg.arenaspawn} to yaml value "Messages.arenaspawn" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.arenaspawn} replace all "" with "%arg-4%" in {skywars.msg.arenaspawn} send "%{skywars.msg.arenaspawn}%" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "addchest": if arg-3 is set: if arg-4 is set: if file "plugins/Skywars/arenas/%arg-3%.yml" doesn't exist: send "%{skywars.msg.arenaisnotexists}%" stop else: if yaml list "Chest.%arg-4%" from "plugins/Skywars/arenas/%arg-3%.yml" is not set: set yaml list "Chest.%arg-4%" from "plugins/Skywars/arenas/%arg-3%.yml" to location of target block else: add location of target block to yaml list "Chest.%arg-4%" from "plugins/Skywars/arenas/%arg-3%.yml" save yaml "plugins/Skywars/arenas/%arg-3%.yml" set {skywars.msg.chestadd} to yaml value "Messages.chestadd" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.chestadd} replace all "" with "%arg-4%" in {skywars.msg.chestadd} send "%{skywars.msg.chestadd}%" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop else: send colored yaml list "Messages.helpArena" from "skywars-messages" stop if arg-2 is "list": size of {skywars-arenas::*} = 0: send "%{skywars.msg.arenaisnotexists}%" stop size of {skywars-arenas::*} > 0: send "&aAll Arena: &7(%size of {skywars-arenas::*}%)" loop {skywars-arenas::*}: send "&7- &2%loop-value% (ID: %loop-index%)" stop else: send "%{skywars.msg.noperms}%" stop # Playerdata system on first join: set {skywars.inarena.%player%} to false set {skywars.inlobby.%player%} to false if file "plugins/Skywars/playerdata/%uuid of player%.yml" doesn't exist: load yaml "plugins/Skywars/playerdata/%uuid of player%.yml" as "plugins/Skywars/playerdata/%uuid of player%.yml" set yaml value "Data.Nickname" from "plugins/Skywars/playerdata/%uuid of player%.yml" to "%player%" set yaml value "Data.Wins" from "plugins/Skywars/playerdata/%uuid of player%.yml" to 0 set yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" to 0 set yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of player%.yml" to 0 set yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of player%.yml" to 0 save yaml "plugins/Skywars/playerdata/%uuid of player%.yml" load yaml "plugins/Skywars/playerdata/%uuid of player%.yml" as "plugins/Skywars/playerdata/%uuid of player%.yml" on join: set {skywars.inarena.%player%} to false set {skywars.inlobby.%player%} to false if file "plugins/Skywars/playerdata/%uuid of player%.yml" doesn't exist: load yaml "plugins/Skywars/playerdata/%uuid of player%.yml" as "plugins/Skywars/playerdata/%uuid of player%.yml" set yaml value "Data.Nickname" from "plugins/Skywars/playerdata/%uuid of player%.yml" to "%player%" set yaml value "Data.Wins" from "plugins/Skywars/playerdata/%uuid of player%.yml" to 0 set yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" to 0 set yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of player%.yml" to 0 set yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of player%.yml" to 0 save yaml "plugins/Skywars/playerdata/%uuid of player%.yml" load yaml "plugins/Skywars/playerdata/%uuid of player%.yml" as "plugins/Skywars/playerdata/%uuid of player%.yml" # Settings - "BUNGEE" on first join: if yaml value "Config.setupMode" from "skywars-config" is "BUNGEE": execute player command "/skywars join %{skywars-arenas::1}%" on join: if yaml value "Config.setupMode" from "skywars-config" is "BUNGEE": execute player command "/skywars join %{skywars-arenas::1}%" # In arena settings on right click: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: set {sw.lobbyitem.kitselector.name} to yaml value "GUI.KitSelector.name" from "skywars-items" if name of player's tool is "%{sw.lobbyitem.kitselector.name}%": cancel event set {sw.lobbyitem.gui.%player%.rows} to yaml value "GUI.rows" from "skywars-gui" set {sw.lobbyitem.gui.%player%.title} to yaml value "GUI.title" from "skywars-gui" open chest with {sw.lobbyitem.gui.%player%.rows} rows named "%{sw.lobbyitem.gui.%player%.title}%" to player wait 2 ticks # Here can you set kits... # !!! THIS IS EXAMPLE !!! # if "%{skywars.kit.%player%}%" is "NAME OF KIT": # format slot 10 of player with of efficiency 1 without any NBT named "&7» &akit name if selected" to close then run [make player execute command "/skywars setkit "] # else: # format slot 10 of player with without any NBT named "&7» &aKit name if not selected" to close then run [make player execute command "/skywars setkit "] # !!! THIS IS EXAMPLE !!! # !!! YOU CAN EDIT BUT BE CARFEUL !!! if "%{skywars.kit.%player%}%" is "Rusher": format slot 10 of player with stone axe of efficiency 1 without any NBT named "&7» &aRusher" to close then run [make player execute command "/skywars setkit Rusher"] else: format slot 10 of player with stone axe without any NBT named "&7» &aRusher" to close then run [make player execute command "/skywars setkit Rusher"] if "%{skywars.kit.%player%}%" is "Knight": format slot 11 of player with iron sword of efficiency 1 without any NBT named "&7» &aKnight" to close then run [make player execute command "/skywars setkit Knight"] else: format slot 11 of player with iron sword without any NBT named "&7» &aKnight" to close then run [make player execute command "/skywars setkit Knight"] if "%{skywars.kit.%player%}%" is "Archer": format slot 12 of player with bow of efficiency 1 without any NBT named "&7» &aArcher" to close then run [make player execute command "/skywars setkit Archer"] else: format slot 12 of player with bow without any NBT named "&7» &aArcher" to close then run [make player execute command "/skywars setkit Archer"] if "%{skywars.kit.%player%}%" is "Jumper": format slot 13 of player with sugar of efficiency 1 without any NBT named "&7» &aJumper" to close then run [make player execute command "/skywars setkit Jumper"] else: format slot 13 of player with sugar named "&7» &aJumper" to close then run [make player execute command "/skywars setkit Jumper"] if "%{skywars.kit.%player%}%" is "Assassin": format slot 14 of player with gold sword of efficiency 1 without any NBT named "&7» &aAssassin" to close then run [make player execute command "/skywars setkit Assassin"] else: format slot 14 of player with gold sword without any NBT named "&7» &aAssassin" to close then run [make player execute command "/skywars setkit Assassin"] # !!! DONT EDIT ANYMORE !!! set {sw.lobbyitem.gui.%player%.unsetkit.name} to yaml value "GUI.unsetkit.name" from "skywars-gui" set {sw.lobbyitem.gui.%player%.unsetkit.item} to yaml value "GUI.unsetkit.item" from "skywars-gui" set {sw.lobbyitem.gui.%player%.unsetkit.item2} to {sw.lobbyitem.gui.%player%.unsetkit.item} parsed as item if {sw.lobbyitem.gui.%player%.rows} is 1: format slot 8 of player with {sw.lobbyitem.gui.%player%.unsetkit.item2} named "%{sw.lobbyitem.gui.%player%.unsetkit.name}%" to close then run [make player execute command "/skywars unsetkit"] else if {sw.lobbyitem.gui.%player%.rows} is 2: format slot 17 of player with {sw.lobbyitem.gui.%player%.unsetkit.item2} named "%{sw.lobbyitem.gui.%player%.unsetkit.name}%" to close then run [make player execute command "/skywars unsetkit"] else if {sw.lobbyitem.gui.%player%.rows} is 3: format slot 26 of player with {sw.lobbyitem.gui.%player%.unsetkit.item2} named "%{sw.lobbyitem.gui.%player%.unsetkit.name}%" to close then run [make player execute command "/skywars unsetkit"] else if {sw.lobbyitem.gui.%player%.rows} is 4: format slot 35 of player with {sw.lobbyitem.gui.%player%.unsetkit.item2} named "%{sw.lobbyitem.gui.%player%.unsetkit.name}%" to close then run [make player execute command "/skywars unsetkit"] else if {sw.lobbyitem.gui.%player%.rows} is 5: format slot 44 of player with {sw.lobbyitem.gui.%player%.unsetkit.item2} named "%{sw.lobbyitem.gui.%player%.unsetkit.name}%" to close then run [make player execute command "/skywars unsetkit"] else if {sw.lobbyitem.gui.%player%.rows} is 6: format slot 53 of player with {sw.lobbyitem.gui.%player%.unsetkit.item2} named "%{sw.lobbyitem.gui.%player%.unsetkit.name}%" to close then run [make player execute command "/skywars unsetkit"] set {sw.lobbyitem.leave.name} to yaml value "Leave.name" from "skywars-items" if name of player's tool is "%{sw.lobbyitem.leave.name}%": execute player command "/skywars leave" stop on inventory click: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: set {sw.lobbyitem.kitselector.name} to yaml value "KitSelector.name" from "skywars-items" if name of clicked item is "%{sw.lobbyitem.kitselector.name}%": cancel event set {sw.lobbyitem.leave.name} to yaml value "Leave.name" from "skywars-items" if name of clicked item is "%{sw.lobbyitem.leave.name}%": cancel event on drop: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: set {sw.lobbyitem.kitselector.name} to yaml value "KitSelector.name" from "skywars-items" if name of event-item is "%{sw.lobbyitem.kitselector.name}%": cancel event set {sw.lobbyitem.leave.name} to yaml value "Leave.name" from "skywars-items" if name of event-item is "%{sw.lobbyitem.leave.name}%": cancel event on any move: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: set {skywars.arenadeathlimit.%player%} to yaml value "Arena.deathLimit" from "plugins/Skywars/arenas/%{skywars.joinedarena.%player%}%.yml" if y-coordinate of player < {skywars.arenadeathlimit.%player%}: teleport player to yaml value "Arena.lobby" from "plugins/Skywars/arenas/%{skywars.joinedarena.%player%}%.yml" on break: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: cancel event stop on click: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: cancel event stop on entity block change: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: cancel event on place: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: cancel event stop if {skywars.inlobby.%player%} is false: set {skywars.arenabuildlimitlow.%player%} to yaml value "Arena.buildLimitLow" from "plugins/Skywars/arenas/%{skywars.joinedarena.%player%}%.yml" if y-coordinate of event-block < {skywars.arenabuildlimitlow.%player%}: cancel event set {skywars.arenabuildlimithigh.%player%} to yaml value "Arena.buildLimitHigh" from "plugins/Skywars/arenas/%{skywars.joinedarena.%player%}%.yml" if y-coordinate of event-block > {skywars.arenabuildlimithigh.%player%}: cancel event on command: if {skywars.inarena.%player%} is true: set {skywars.cmdloop::*} to yaml list "Config.allowedCommandsInArena" from "skywars-config" if {skywars.cmdloop::*} is not "%command%": cancel event send "%{skywars.msg.notallowed}%" stop on damage: if {skywars.inarena.%victim%} is true: if {skywars.inlobby.%victim%} is true: cancel event stop if yaml value "Config.enableFallDamage" from "skywars-config" is false: if damage cause is fall: cancel event on hunger meter change: if {skywars.inarena.%player%} is true: if yaml value "Config.loseHungerInArena" from "skywars-config" is false: cancel event on damage: if attacker is a player: if (check [{skywars.inlobby.%victim%}]) or (check [{skywars.inlobby.%attacker%}]) is true: cancel event on damage: if {skywars.inarena.%victim%} is true: if attacker is a player: if {skywars.voidKillP.%victim%} is "%attacker%": stop set {skywars.voidKillP.%victim%} to "%attacker%" wait 12 seconds clear {skywars.voidKillP.%victim%} stop if {skywars.voidKillP.%victim%} is set: clear {skywars.voidKillP.%victim%} on any move: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is false: set {skywars.arenadeathlimit.%player%} to yaml value "Arena.deathLimit" from "plugins/Skywars/arenas/%{skywars.joinedarena.%player%}%.yml" if y-coordinate of player < {skywars.arenadeathlimit.%player%}: clear player's inventory if {skywars.voidKillP.%player%} is set: set {skywars.msg.killplayerknockedvoid} to yaml value "Messages.killplayerknockedvoid" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.killplayerknockedvoid} replace all "" with "%player%" in {skywars.msg.killplayerknockedvoid} replace all "" with "%{skywars.voidKillP.%player%}%" in {skywars.msg.killplayerknockedvoid} set {skywars.deaths.%uuid of player%} to yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of player%.yml" set yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of player%.yml" to {skywars.deaths.%uuid of player%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of player%.yml" set {skywars.losses.%uuid of player%} to yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" set yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" to {skywars.losses.%uuid of player%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of player%.yml" wait 1 tick set {_skywars.nowstatsset} to ({skywars.voidKillP.%player%} parsed as offlineplayer)'s uuid set {skywars.kills.%{_skywars.nowstatsset}%} to yaml value "Data.Kills" from "plugins/Skywars/playerdata/%{_skywars.nowstatsset}%.yml" set yaml value "Data.Kills" from "plugins/Skywars/playerdata/%{_skywars.nowstatsset}%.yml" to {skywars.kills.%{_skywars.nowstatsset}%} + 1 save yaml "plugins/Skywars/playerdata/%{_skywars.nowstatsset}%.yml" if yaml value "Config.enableScoreboard" from "skywars-config" is true: execute console command "/skywarsgameend %player%" send "%{skywars.msg.killplayerknockedvoid}%" to {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} remove player from {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} set {skywars.inarena.%player%} to false set {skywars.inlobby.%player%} to false kill player force respawn player wait 1 tick teleport player to yaml value "Arena.leave" from "plugins/Skywars/arenas/%{skywars.joinedarena.%player%}%.yml" stop else: set {skywars.msg.killplayervoid} to yaml value "Messages.killplayervoid" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.killplayervoid} replace all "" with "%player%" in {skywars.msg.killplayervoid} set {skywars.deaths.%uuid of player%} to yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of player%.yml" set yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of player%.yml" to {skywars.deaths.%uuid of player%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of player%.yml" set {skywars.losses.%uuid of player%} to yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" set yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" to {skywars.losses.%uuid of player%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of player%.yml" if yaml value "Config.enableScoreboard" from "skywars-config" is true: execute console command "/skywarsgameend %player%" wait 1 tick send "%{skywars.msg.killplayervoid}%" to {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} remove player from {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} set {skywars.inarena.%player%} to false set {skywars.inlobby.%player%} to false kill player force respawn player wait 1 tick teleport player to yaml value "Arena.leave" from "plugins/Skywars/arenas/%{skywars.joinedarena.%player%}%.yml" stop on death of player: if {skywars.inarena.%player%} is true: if attacker is a player: if projectile is set: set {skywars.msg.killplayershoot} to yaml value "Messages.killplayershoot" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.killplayershoot} replace all "" with "%attacker%" in {skywars.msg.killplayershoot} replace all "" with "%victim%" in {skywars.msg.killplayershoot} set {skywars.kills.%uuid of attacker%} to yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of attacker%.yml" set yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of attacker%.yml" to {skywars.kills.%uuid of attacker%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of attacker%.yml" set {skywars.losses.%uuid of victim%} to yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of victim%.yml" set yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of victim%.yml" to {skywars.losses.%uuid of victim%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of victim%.yml" set {skywars.deaths.%uuid of victim%} to yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of victim%.yml" set yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of victim%.yml" to {skywars.deaths.%uuid of victim%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of victim%.yml" if yaml value "Config.enableScoreboard" from "skywars-config" is true: execute console command "/skywarsgameend %victim%" wait 1 tick send "%{skywars.msg.killplayershoot}%" to {skywars.arena.%{skywars.joinedarena.%victim%}%.allplayersingame::*} remove player from {skywars.arena.%{skywars.joinedarena.%victim%}%.allplayersingame::*} set {skywars.inarena.%victim%} to false set {skywars.inlobby.%victim%} to false force respawn victim teleport victim to yaml value "Arena.leave" from "plugins/Skywars/arenas/%{skywars.joinedarena.%victim%}%.yml" stop if attacker is a player: if attacker is set: set {skywars.msg.killplayer} to yaml value "Messages.killplayer" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.killplayer} replace all "" with "%attacker%" in {skywars.msg.killplayer} replace all "" with "%victim%" in {skywars.msg.killplayer} set {skywars.kills.%uuid of attacker%} to yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of attacker%.yml" set yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of attacker%.yml" to {skywars.kills.%uuid of attacker%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of attacker%.yml" set {skywars.losses.%uuid of victim%} to yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of victim%.yml" set yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of victim%.yml" to {skywars.losses.%uuid of victim%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of victim%.yml" set {skywars.deaths.%uuid of victim%} to yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of victim%.yml" set yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of victim%.yml" to {skywars.deaths.%uuid of victim%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of victim%.yml" if yaml value "Config.enableScoreboard" from "skywars-config" is true: execute console command "/skywarsgameend %victim%" wait 1 tick send "%{skywars.msg.killplayer}%" to {skywars.arena.%{skywars.joinedarena.%victim%}%.allplayersingame::*} remove player from {skywars.arena.%{skywars.joinedarena.%victim%}%.allplayersingame::*} set {skywars.inarena.%victim%} to false set {skywars.inlobby.%victim%} to false force respawn victim teleport victim to yaml value "Arena.leave" from "plugins/Skywars/arenas/%{skywars.joinedarena.%victim%}%.yml" stop # Quit Event on quit: if {skywars.inarena.%player%} is true: if {skywars.inlobby.%player%} is true: teleport player to yaml value "Arena.leave" from "plugins/Skywars/arenas/%{skywars.joinedarena.%player%}%.yml" clear player's inventory set player's gamemode to survival remove all potion effects from player set player's health to 20 set player's hunger to 20 show action bar with "" to player set {skywars.leftmsgnow.%player%} to yaml value "Messages.playerleftserver" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.leftmsgnow.%player%} replace all "" with "%player%" in {skywars.leftmsgnow.%player%} replace all "" with "%amount of {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} - 1%" in {skywars.leftmsgnow.%player%} replace all "" with "%{skywars.arena.%{skywars.joinedarena.%player%}%.maxplayers}%" in {skywars.leftmsgnow.%player%} send "%{skywars.leftmsgnow.%player%}%" to {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} wait 1 tick remove player from {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} set {skywars.inarena.%player%} to false set {skywars.inlobby.%player%} to false if {skywars.inlobby.%player%} is false: teleport player to yaml value "Arena.leave" from "plugins/Skywars/arenas/%{skywars.joinedarena.%player%}%.yml" clear player's inventory set player's gamemode to survival set {skywars.leftmsgnow.%player%} to yaml value "Messages.playerleftserver" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.leftmsgnow.%player%} replace all "" with "%player%" in {skywars.leftmsgnow.%player%} replace all "" with "%amount of {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} - 1%" in {skywars.leftmsgnow.%player%} replace all "" with "%{skywars.arena.%{skywars.joinedarena.%player%}%.maxplayers}%" in {skywars.leftmsgnow.%player%} send "%{skywars.leftmsgnow.%player%}%" to {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} wait 1 tick remove player from {skywars.arena.%{skywars.joinedarena.%player%}%.allplayersingame::*} set {skywars.inarena.%player%} to false set {skywars.inlobby.%player%} to false set {skywars.deaths.%uuid of player%} to yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of player%.yml" set yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of player%.yml" to {skywars.deaths.%uuid of player%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of player%.yml" set {skywars.losses.%uuid of player%} to yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" set yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of player%.yml" to {skywars.losses.%uuid of player%} + 1 save yaml "plugins/Skywars/playerdata/%uuid of player%.yml" if yaml value "Config.enableScoreboard" from "skywars-config" is true: if {skywars.inlobby.%player%} is true: set {skywars.sb.%uuid of player%::*} to yaml list "Lobby.rows" from "skywars-scoreboard" set {skywars.sb.%uuid of player%.slot} to 1 loop {skywars.sb.%uuid of player%::*}: delete the id based score "skywars-slot-%uuid of player%-%{skywars.sb.%uuid of player%.slot}%" in stylish scoreboard "skywars-%uuid of player%" add 1 to {skywars.sb.%uuid of player%.slot} delete stylish scoreboard "skywars-%uuid of player%" if {skywars.inlobby.%player%} is false: set {skywars.sb.%uuid of player%::*} to yaml list "Game.rows" from "skywars-scoreboard" set {skywars.sb.%uuid of player%.slot} to 1 loop {skywars.sb.%uuid of player%::*}: delete the id based score "skywars-slot-%uuid of player%-%{skywars.sb.%uuid of player%.slot}%" in stylish scoreboard "skywars-%uuid of player%" add 1 to {skywars.sb.%uuid of player%.slot} delete stylish scoreboard "skywars-%uuid of player%" # Scoreboard Game-End Function command /skywarsgameend []: trigger: if sender is console: if yaml value "Config.enableScoreboard" from "skywars-config" is true: # Vymaze Game Scoreboard set {skywars.sb.%uuid of arg-1%::*} to yaml list "Game.rows" from "skywars-scoreboard" set {skywars.sb.%uuid of arg-1%.slot} to 1 loop {skywars.sb.%uuid of arg-1%::*}: delete the id based score "skywars-slot-%uuid of arg-1%-%{skywars.sb.%uuid of arg-1%.slot}%" in stylish scoreboard "skywars-%uuid of arg-1%" add 1 to {skywars.sb.%uuid of arg-1%.slot} delete stylish scoreboard "skywars-%uuid of arg-1%" else: send "%{skywars.msg.noperms}%" # Scoreboard Game-Start Function command /skywarsgamestart []: trigger: if sender is console: set {skywars.inlobby.%arg-1%} to false clear arg-1's inventory if {skywars.kit.%arg-1%} is set: set {skywars.slot.%arg-1%} to 0 wait 1 tick set arg-1's helmet to yaml value "Kit.slot-helmet" from "plugins/Skywars/kits/%{skywars.kit.%arg-1%}%.yml" set arg-1's chestplate to yaml value "Kit.slot-chestplate" from "plugins/Skywars/kits/%{skywars.kit.%arg-1%}%.yml" set arg-1's legging to yaml value "Kit.slot-leggings" from "plugins/Skywars/kits/%{skywars.kit.%arg-1%}%.yml" set arg-1's boots to yaml value "Kit.slot-boots" from "plugins/Skywars/kits/%{skywars.kit.%arg-1%}%.yml" loop 36 times: set slot {skywars.slot.%arg-1%} of arg-1's inventory to yaml value "Kit.slot-%{skywars.slot.%arg-1%}%" from "plugins/Skywars/kits/%{skywars.kit.%arg-1%}%.yml" add 1 to {skywars.slot.%arg-1%} wait 2 ticks if yaml value "Config.enableScoreboard" from "skywars-config" is true: # Vymaze Lobby Scoreboard set {skywars.sb.%uuid of arg-1%::*} to yaml list "Lobby.rows" from "skywars-scoreboard" set {skywars.sb.%uuid of arg-1%.slot} to 1 loop {skywars.sb.%uuid of arg-1%::*}: delete the id based score "skywars-slot-%uuid of arg-1%-%{skywars.sb.%uuid of arg-1%.slot}%" in stylish scoreboard "skywars-%uuid of arg-1%" add 1 to {skywars.sb.%uuid of arg-1%.slot} delete stylish scoreboard "skywars-%uuid of arg-1%" wait 2 ticks # Vytvori Game Scoreboard create new stylish scoreboard named "skywars-%uuid of arg-1%" set stylish scoreboard of arg-1 to "skywars-%uuid of arg-1%" set {skywars.sb.%uuid of arg-1%::*} to yaml list "Game.rows" from "skywars-scoreboard" set {skywars.sb.%uuid of arg-1%.maxslot} to size of {skywars.sb.%uuid of arg-1%::*} set {skywars.sb.%uuid of arg-1%.slot} to 1 set {skywars.sb.%uuid of arg-1%.nowslot} to size of {skywars.sb.%uuid of arg-1%::*} loop {skywars.sb.%uuid of arg-1%.maxslot} times: set {skywars.kills.%uuid of arg-1%} to yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of arg-1%.yml" set {skywars.deaths.%uuid of arg-1%} to yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of arg-1%.yml" set {skywars.wins.%uuid of arg-1%} to yaml value "Data.Wins" from "plugins/Skywars/playerdata/%uuid of arg-1%.yml" set {skywars.losses.%uuid of arg-1%} to yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of arg-1%.yml" replace all "" with "%{skywars.kills.%uuid of arg-1%}%" in {skywars.sb.%uuid of arg-1%::%{skywars.sb.%uuid of arg-1%.slot}%} replace all "" with "%{skywars.deaths.%uuid of arg-1%}%" in {skywars.sb.%uuid of arg-1%::%{skywars.sb.%uuid of arg-1%.slot}%} replace all "" with "%{skywars.wins.%uuid of arg-1%}%" in {skywars.sb.%uuid of arg-1%::%{skywars.sb.%uuid of arg-1%.slot}%} replace all "" with "%{skywars.losses.%uuid of arg-1%}%" in {skywars.sb.%uuid of arg-1%::%{skywars.sb.%uuid of arg-1%.slot}%} replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.sb.%uuid of arg-1%::%{skywars.sb.%uuid of arg-1%.slot}%} replace all "" with "%arg-1%" in {skywars.sb.%uuid of arg-1%::%{skywars.sb.%uuid of arg-1%.slot}%} replace all "" with "%{skywars.joinedarena.%arg-1%}%" in {skywars.sb.%uuid of arg-1%::%{skywars.sb.%uuid of arg-1%.slot}%} replace all "" with "%amount of {skywars.arena.%{skywars.joinedarena.%arg-1%}%.allplayersingame::*}%" in {skywars.sb.%uuid of arg-1%::%{skywars.sb.%uuid of arg-1%.slot}%} replace all "" with "%{skywars.arena.%{skywars.joinedarena.%arg-1%}%.endin}%" in {skywars.sb.%uuid of arg-1%::%{skywars.sb.%uuid of arg-1%.slot}%} create a new id based score "skywars-slot-%uuid of arg-1%-%{skywars.sb.%uuid of arg-1%.nowslot}%" with text "%colored {skywars.sb.%uuid of arg-1%::%{skywars.sb.%uuid of arg-1%.slot}%}%" slot {skywars.sb.%uuid of arg-1%.nowslot} for stylish scoreboard "skywars-%uuid of arg-1%" add 1 to {skywars.sb.%uuid of arg-1%.slot} set {skywars.sb.%uuid of arg-1%.nowslot} to {skywars.sb.%uuid of arg-1%.nowslot} - 1 set {skywars.sb.%uuid of arg-1%.title} to yaml value "Game.title" from "skywars-scoreboard" set title of stylish scoreboard "skywars-%uuid of arg-1%" to "%{skywars.sb.%uuid of arg-1%.title}%" else: send "%{skywars.msg.noperms}%" # Chest Fill/Refill Function command /skywarsrefilchestrn [] []: trigger: # arg-1 = Arena name # arg-2 = Type of chest if sender is console: set {skywars.allchests.%arg-1%::*} to yaml list "Chest.%arg-2%" from "plugins/Skywars/arenas/%arg-1%.yml" loop {skywars.allchests.%arg-1%::*}: set {skywars.chest.%loop-value-1%} to loop-value-1 set block at {skywars.chest.%loop-value-1%} to chest clear {skywars.chestloc.%loop-value-1%}'s inventory set {skywars.chestloc.%loop-value-1%} to block at {skywars.chest.%loop-value-1%} set {skywars.randomchestitem} to a random integer between 1 and {skywars.itemsinonechest} set {skywars.allchestsitems::*} to yaml list "Chests.%arg-2%.%{skywars.randomchestitem}%" from "skywars-chests" loop {skywars.allchestsitems::*}: set {skywars.randomposition} to a random integer between 0 and 26 set {skywars.itemnow.%loop-value-1%} to loop-value-2 parsed as item set slot {skywars.randomposition} of {skywars.chestloc.%loop-value-1%}'s inventory to {skywars.itemnow.%loop-value-1%} wait 2 ticks else: send "%{skywars.msg.noperms}%" # Arena Event every 2 seconds: loop {skywars-arenas::*}: if {skywars.dosomethink.%loop-value-1%} is true: if {skywars.arenacanstart.%loop-value-1%} is false: set {skywars.arena.%loop-value-1%.playersalive} to amount of {skywars.arena.%loop-value-1%.allplayersingame::*} wait 2 ticks if 1 = {skywars.arena.%loop-value-1%.playersalive}: loop {skywars.arena.%loop-value-1%.allplayersingame::*}: if "%loop-value-2%" is set: set {skywars.playergameend} to loop-value-2 teleport {skywars.playergameend} to yaml value "Arena.leave" from "plugins/Skywars/arenas/%loop-value-1%.yml" clear {skywars.playergameend}'s inventory set {skywars.playergameend}'s gamemode to survival remove all potion effects from {skywars.playergameend} set {skywars.playergameend}'s health to 20 set {skywars.playergameend}'s hunger to 20 set {skywars.wingame.%{skywars.playergameend}%} to yaml value "Messages.wingame" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.wingame.%{skywars.playergameend}%} replace all "" with "%{skywars.playergameend}%" in {skywars.wingame.%{skywars.playergameend}%} if yaml value "Config.enableScoreboard" from "skywars-config" is true: execute console command "/skywarsgameend %{skywars.playergameend}%" send "%{skywars.wingame.%{skywars.playergameend}%}%" to {skywars.arena.%loop-value-1%.allplayersingame::*} wait 1 tick set {skywars.updatestats} to yaml value "Data.Wins" from "plugins/Skywars/playerdata/%uuid of {skywars.playergameend}%.yml" set yaml value "Data.Wins" from "plugins/Skywars/playerdata/%uuid of {skywars.playergameend}%.yml" to {skywars.updatestats} + 1 save yaml "plugins/Skywars/playerdata/%uuid of {skywars.playergameend}%.yml" set {skywars.inarena.%{skywars.playergameend}%} to false set {skywars.inlobby.%{skywars.playergameend}%} to false clear {skywars.%loop-value-1%.block::*} remove {skywars.playergameend} from {skywars.arena.%loop-value-1%.allplayersingame::*} wait 10 ticks regenerate regenerator with ID "%loop-value-1%" if {skywars.arenacanstart.%loop-value-1%} is true: set {skywars.arena.%loop-value-1%.minplayers} to yaml value "Arena.minplayers" from "plugins/Skywars/arenas/%loop-value-1%.yml" if "%{skywars.arena.%loop-value-1%.minplayers}%" <= "%amount of {skywars.arena.%loop-value-1%.allplayersingame::*}%": set {skywars.starttime.%loop-value-1%} to yaml value "Messages.lobby.timetostart" from "skywars-messages" loop {skywars.starttime.%loop-value-1%} times: set {skywars.starttime.%loop-value-1%} to {skywars.starttime.%loop-value-1%} - 1 set {skywars.dosomethink.%loop-value-1%} to false set {skywars.arenatesting.%loop-value-1%.minplayers} to {skywars.arena.%loop-value-1%.minplayers} set {skywars.arenatesting.%loop-value-1%.nowplayers} to amount of {skywars.arena.%loop-value-1%.allplayersingame::*} if {skywars.arenatesting.%loop-value-1%.minplayers} > {skywars.arenatesting.%loop-value-1%.nowplayers}: set {skywars.dosomethink.%loop-value-1%} to true stop set {skywars.msg.title%{skywars.starttime.%loop-value-1%}%} to yaml value "Messages.lobby.title%{skywars.starttime.%loop-value-1%}%" from "skywars-messages" set {skywars.msg.subtitle%{skywars.starttime.%loop-value-1%}%} to yaml value "Messages.lobby.subtitle%{skywars.starttime.%loop-value-1%}%" from "skywars-messages" set {skywars.msg.chat%{skywars.starttime.%loop-value-1%}%} to yaml value "Messages.lobby.chat%{skywars.starttime.%loop-value-1%}%" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.msg.chat%{skywars.starttime.%loop-value-1%}%} if yaml value "Config.startGameChat" from "skywars-config" is true: send "%{skywars.msg.chat%{skywars.starttime.%loop-value-1%}%}%" to {skywars.arena.%loop-value-1%.allplayersingame::*} if yaml value "Config.startGameTitle" from "skywars-config" is true: if yaml value "Config.respawnSubtitle" from "skywars-config" is false: send {skywars.arena.%loop-value-1%.allplayersingame::*} title "%{skywars.msg.title%{skywars.starttime.%loop-value-1%}%}%" for 1 seconds if yaml value "Config.startGameSubtitle" from "skywars-config" is true: send {skywars.arena.%loop-value-1%.allplayersingame::*} title "%{skywars.msg.title%{skywars.starttime.%loop-value-1%}%}%" with subtitle "%{skywars.msg.subtitle%{skywars.starttime.%loop-value-1%}%}%" for 1 seconds if {skywars.starttime.%loop-value-1%} is 0: wait 1 tick set {skywars.arena.%loop-value-1%.endin} to value "Config.arenaEnd" from "skywars-config" loop {skywars.arena.%loop-value-1%.allplayersingame::*}: teleport loop-value-2 to yaml value "Spawn.%loop-index-2%" from "plugins/Skywars/arenas/%loop-value-1%.yml" execute console command "/skywarsgamestart %loop-value-2%" set {skywars.chests.%loop-value-1%::*} to yaml node keys "Chest" of "plugins/Skywars/arenas/%loop-value-1%.yml" loop {skywars.chests.%loop-value-1%::*}: execute console command "/skywarsrefilchestrn %loop-value-1% %loop-value-2%" set {skywars.arenacanstart.%loop-value-1%} to false wait 20 ticks set {skywars.dosomethink.%loop-value-1%} to true set {skywars.cancount.%loop-value-1%} to true set {skywars.arenastart.%loop-value-1%} to true wait 1 second # Arena Ender every 1 second: loop {skywars-arenas::*}: if {skywars.cancount.%loop-value-1%} is true: set {skywars.chestrefill.%loop-value-1%} to value "Config.arenaChestRefill" from "skywars-config" if amount of {skywars.arena.%loop-value-1%.allplayersingame::*} is 0: set {skywars.cancount.%loop-value-1%} to false set {skywars.arenastart.%loop-value-1%} to false set {skywars.arena.%loop-value-1%.truefalsecr} to true stop if {skywars.arena.%loop-value-1%.endin} is {skywars.chestrefill.%loop-value-1%}: if {skywars.arena.%loop-value-1%.truefalsecr} is true: set {skywars.arena.%loop-value-1%.truefalsecr} to false set {skywars.chests.%loop-value-1%::*} to yaml node keys "Chest" of "plugins/Skywars/arenas/%loop-value-1%.yml" loop {skywars.chests.%loop-value-1%::*}: execute console command "/skywarsrefilchestrn %loop-value-1% %loop-value-2%" send "%{skywars.msg.chestrefill}%" to {skywars.arena.%loop-value-1%.allplayersingame::*} set {skywars.arena.%loop-value-1%.endin} to {skywars.arena.%loop-value-1%.endin} - 1 stop if {skywars.arena.%loop-value-1%.endin} is 0: set {skywars.gameend.%loop-value-1%} to yaml value "Messages.endgame" from "skywars-messages" replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.gameend.%loop-value-1%} send "%{skywars.gameend.%loop-value-1%}%" to {skywars.arena.%loop-value-1%.allplayersingame::*} loop {skywars.arena.%loop-value-1%.allplayersingame::*}: if yaml value "Config.enableScoreboard" from "skywars-config" is true: execute console command "/skywarsgameend %loop-value-2%" remove loop-value-2 from {skywars.arena.%{skywars.joinedarena.%loop-value-2%}%.allplayersingame::*} set {skywars.inarena.%loop-value-2%} to false set {skywars.inlobby.%loop-value-2%} to false teleport loop-value-2 to yaml value "Arena.leave" from "plugins/Skywars/arenas/%{skywars.joinedarena.%loop-value-2%}%.yml" set {skywars.cancount.%loop-value-1%} to false set {skywars.arenastart.%loop-value-1%} to false stop set {skywars.arena.%loop-value-1%.endin} to {skywars.arena.%loop-value-1%.endin} - 1 # Scoreboard Updater every 1 seconds: loop all players: if {skywars.inarena.%loop-player-1%} is true: if {skywars.inlobby.%loop-player-1%} is true: if yaml value "Config.enableScoreboard" from "skywars-config" is true: set {skywars.sb.%uuid of loop-player-1%::*} to yaml list "Lobby.rows" from "skywars-scoreboard" set {skywars.sb.%uuid of loop-player-1%.maxslot} to size of {skywars.sb.%uuid of loop-player-1%::*} set {skywars.sb.%uuid of loop-player-1%.slot} to 1 set {skywars.sb.%uuid of loop-player-1%.nowslot} to size of {skywars.sb.%uuid of loop-player-1%::*} loop {skywars.sb.%uuid of loop-player-1%.maxslot} times: set {skywars.kills.%uuid of loop-player-1%} to yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of loop-player-1%.yml" set {skywars.deaths.%uuid of loop-player-1%} to yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of loop-player-1%.yml" set {skywars.wins.%uuid of loop-player-1%} to yaml value "Data.Wins" from "plugins/Skywars/playerdata/%uuid of loop-player-1%.yml" set {skywars.losses.%uuid of loop-player-1%} to yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of loop-player-1%.yml" replace all "" with "%{skywars.kills.%uuid of loop-player-1%}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%{skywars.deaths.%uuid of loop-player-1%}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%{skywars.wins.%uuid of loop-player-1%}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%{skywars.losses.%uuid of loop-player-1%}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%loop-player-1%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%{skywars.joinedarena.%loop-player-1%}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} set the text of id "skywars-slot-%uuid of loop-player-1%-%{skywars.sb.%uuid of loop-player-1%.nowslot}%" to "%colored {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%}%" add 1 to {skywars.sb.%uuid of loop-player-1%.slot} set {skywars.sb.%uuid of loop-player-1%.nowslot} to {skywars.sb.%uuid of loop-player-1%.nowslot} - 1 if {skywars.inlobby.%loop-player-1%} is false: if yaml value "Config.enableScoreboard" from "skywars-config" is true: set {skywars.sb.%uuid of loop-player-1%::*} to yaml list "Game.rows" from "skywars-scoreboard" set {skywars.sb.%uuid of loop-player-1%.maxslot} to size of {skywars.sb.%uuid of loop-player-1%::*} set {skywars.sb.%uuid of loop-player-1%.slot} to 1 set {skywars.sb.%uuid of loop-player-1%.nowslot} to size of {skywars.sb.%uuid of loop-player-1%::*} loop {skywars.sb.%uuid of loop-player-1%.maxslot} times: set {skywars.kills.%uuid of loop-player-1%} to yaml value "Data.Kills" from "plugins/Skywars/playerdata/%uuid of loop-player-1%.yml" set {skywars.deaths.%uuid of loop-player-1%} to yaml value "Data.Deaths" from "plugins/Skywars/playerdata/%uuid of loop-player-1%.yml" set {skywars.wins.%uuid of loop-player-1%} to yaml value "Data.Wins" from "plugins/Skywars/playerdata/%uuid of loop-player-1%.yml" set {skywars.losses.%uuid of loop-player-1%} to yaml value "Data.Losses" from "plugins/Skywars/playerdata/%uuid of loop-player-1%.yml" replace all "" with "%{skywars.arena.%{skywars.joinedarena.%loop-player-1%}%.endin}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%{skywars.kills.%uuid of loop-player-1%}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%{skywars.deaths.%uuid of loop-player-1%}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%{skywars.wins.%uuid of loop-player-1%}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%{skywars.losses.%uuid of loop-player-1%}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with yaml value "Messages.prefix" from "skywars-messages" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%loop-player-1%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%{skywars.joinedarena.%loop-player-1%}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} replace all "" with "%amount of {skywars.arena.%{skywars.joinedarena.%loop-player-1%}%.allplayersingame::*}%" in {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%} set the text of id "skywars-slot-%uuid of loop-player-1%-%{skywars.sb.%uuid of loop-player-1%.nowslot}%" to "%colored {skywars.sb.%uuid of loop-player-1%::%{skywars.sb.%uuid of loop-player-1%.slot}%}%" add 1 to {skywars.sb.%uuid of loop-player-1%.slot} set {skywars.sb.%uuid of loop-player-1%.nowslot} to {skywars.sb.%uuid of loop-player-1%.nowslot} - 1