#konfiguracja spawnow command /team [] [] []: trigger: if player has permission "admin.sk": if arg 1 is "ustaw": if arg 3 is "1": if arg 2 is set: set {spawn.%arg 2%.1} to location of player send "ustawiles spawn 1 druzyny" if arg 3 is "2": if arg 2 is set: set {spawn.%arg 2%.2} to location of player send "ustawiles spawn 2 druzyny" #Dolaczanie do areny on rightclick on sign: if line 1 is "&4Kliknij": if line 2 is "&4Aby Dolaczyc": make player execute command "/Dolacz" #konfiguracja gui command /dolacz [] []: trigger: if arg 1 is not set: if arg 2 is not set: open chest with 1 row named "&4Wybor Klasy" to player wait 2 tick format slot 2 of player with 1 of blue wool named "&b&lDruzyna niebieska" with lore "&bKliknij Aby||&bDolaczyc" to close then run "sudo %player% dolacz dolacz blue" format slot 6 of player with 1 of red wool named "&4&lDruzyna czerwona" with lore "&4Kliknij Aby||&4Dolaczyc" to close then run "sudo %player% dolacz dolacz red" if arg 1 is "dolacz": if arg 2 is "blue": if {blue.ilosc} is 0: set {niebiescy.%player%} to true set {czerwoni.%player%} to false send "&bDolaczyles Do druzyny Niebiekiej" add 1 to {blue.ilosc} add 1 to {gracze.ilosc} clear player's inventory equip player with all Leather armour named "&4&lSET Blue" dye player's helmet blue dye player's chestplate blue dye player's leggings blue dye player's boots blue if arg 1 is "dolacz": if arg 2 is "red": if {red.ilosc} is 0: set {czerwoni.%player%} to true set {niebiescy.%player%} to false send "&4Dolaczyles Do druzyny Czerwonej" add 1 to {gracze.ilosc} add 1 to {red.ilosc} clear player's inventory equip player with all Leather armour named "&4&lSET Red" dye player's helmet red dye player's chestplate red dye player's leggings red dye player's boots red #Start Areny every 2 second: if {gracze.ilosc} is 2: loop all players: if {niebiescy.%loop-player%} is true: teleport loop-player to {spawn.arena.2} stop if {czerwoni.%loop-player%} is true: teleport loop-player to {spawn.arena.1} stop command /reset: trigger: set {niebiescy.ilosc} to 0 set {czerwoni.ilosc} to 0 set {gracze.ilosc} to 0 send "xd"