options: #tag przed wiadomosciami tag: &e&l[&9Sky-Wars&e&l] show1: s;1;i;enchanted golden apple;n;&9Zlote jabko;l;&aPrzedmiot na zawsze||&ctwoje pieniadze: %{money.gracz.%player%}%||&8&oKliknij aby kupic przedmiot;c;kup kup golden apple %player% {cena.usluga}; show2: s;2;i;iron helmet;n;&9Zlote jabko;l;&aPrzedmiot na zawsze||&ctwoje pieniadze: %{money.gracz.%player%}%||&8&oKliknij aby kupic przedmiot;c;sklepa kup iron helmet %player% {cena.usluga1}; variables: {SW.number} = 0 {SW.mode} = 0 {SW.gracz.%player%} = false {SW.start} = false {SW.wygrana} = false {cena.usluga} = 1 {cena.usluga1} = 2 {cena.lucznik.1} = 1 {cena.lucznik.2} = 2 {cena.lucznik.3} = 3 {cena.lucznik.4} = 4 {klasa.lucznik1.sprawdz.%player%} = false {klasa.lucznik2.sprawdz.%player%} = false {klasa.lucznik3.sprawdz.%player%} = false {klasa.lucznik4.sprawdz.%player%} = false {klasa.lucznik1.%player%} = false {klasa.lucznik2.%player%} = false {klasa.lucznik3.%player%} = false {klasa.lucznik4.%player%} = false {money.gracz.%player%} = 0 {golden.apple.%player%} = false {iron.helmet.%player%} = false on place stone: add 100 to {money.gracz.%player%} command /kup [] [] [] [] [] []: trigger: if arg 1 is set: if arg 2 is set: if arg 3 is set: if arg 4 is set: if arg 5 is set: if {golden.apple.%{_gracz}%} is true: send "{@tag} &4Masz juz wykupiony ten przedmiot" stop if {money.gracz.%{_gracz}%} is greater than or equal to {cena.usluga}: set {_gracz} to arg 4 parsed as player set {_sklep.przedmiot.%{_gracz}%} to "%arg 2% %arg 3%" parsed as item add {_sklep.przedmiot.%{_gracz}%} to {_gracz}'s inventory remove {cena.usluga} from {money.gracz.%{_gracz}%} set {golden.apple.%{_gracz}%} to true send "{@tag} &a&lPomyslnie zakupiono produkt %{_sklep.przedmiot.%{_gracz}%}%" to {_gracz} stop else if {money.gracz.%{_gracz}%} is less than {cena.usluga}: send "{@tag} &9&lNie masz tyle pieniedzy!" command /sw [] [] [] []: trigger: if arg 1 is not set: if player has permissions "rush.gracz": send "&4Wszystkie komedy gracza:" send "&a/rush red &e-Dolacza do red." send "&a/rush blue &e-Dolacza do blue." send "&a/rush opusc &e-Opuszcza dany team i teleportuje na spawn." if player has permissions "rush.admin": send "&4Wszystkie komedy Admina:" send "&a/rush setspawnblue &e-Tworzy spawn dla team blue." send "&a/rush setspawnred &e-Tworzy spawn dla team red." send "&a/rush setlobby &e-Tworzy lobby dla druzyn." send "&a/rush dodaj &e-Dodaje gracza do areny." send "&a/rush wywal &e-Wyrzuca gracza a areny." # if arg 1 is "klasy": if arg 2 is not set: if player doesn't have permission "rush.admin": send "{@tag} &cBrak uprawnien!" else: send "&4Klasy:" send "&a/sw klasa kup lucznik 1 &e-Koszt 100punktow." # if arg 1 is "klasa": if arg 2 is "kup": if arg 3 is "lucznik": if arg 4 is "1": if {klasa.lucznik1.sprawdz.%player%} is true: send "{@tag} &4Masz juz wykupiona klase Lucznik 1" if {money.gracz.%player%} is greater than or equal to {cena.lucznik.1}: remove {cena.lucznik.1} from {money.gracz.%player%} add 1 bow named "&aLuk poziom 1" to the player add 5 arrow named "&aszczaly" to the player add 1 Leather helmet named "&aCzapka poziom 1" to the player add 1 Leather boots named "&aButy poziom 1" to the player set {klasa.lucznik1.%player%} to true else: if {money.gracz.%player%} is less than {cena.lucznik.1}: send "{@tag} &9&lNie masz tyle pieniedzy!" if arg 4 is "2": if {klasa.lucznik2.sprawdz.%player%} is true: send "{@tag} &4Masz juz wykupiona klase Lucznik 2" if {klasa.lucznik1.%player%} is true: if {money.gracz.%player%} is greater than or equal to {cena.lucznik.2}: remove {cena.lucznik.2} from {money.gracz.%player%} add 1 bow named "&aLuk poziom 2" to the player add 10 arrow named "&aszczaly" to the player add 1 Leather helmet of protection 1 named "&aCzapka poziom 2" to the player add 1 Leather boots of protection 1 named "&aButy poziom 2" to the player set {klasa.lucznik2.%player%} to true set {klasa.lucznik1.%player%} to false set {klasa.lucznik1.sprawdz.%player%} to true else: if {money.gracz.%player%} is less than {cena.lucznik.2}: send "{@tag} &9&lNie masz tyle pieniedzy!" else: send "{@tag} &cMusisz najpierw kupic Poziom 1" if arg 4 is "3": if {klasa.lucznik3.sprawdz.%player%} is true: send "{@tag} &4Masz juz wykupiona klase Lucznik 3" if {klasa.lucznik2.%player%} is true: if {money.gracz.%player%} is greater than or equal to {cena.lucznik.3}: remove {cena.lucznik.3} from {money.gracz.%player%} add 1 bow of power 1 named "&aLuk poziom 3" to the player add 15 arrow named "&aszczaly" to the player add 1 Leather helmet of protection 2 named "&aCzapka poziom 3" to the player add 1 Leather boots of protection 2 named "&aButy poziom 3" to the player set {klasa.lucznik2.%player%} to false set {klasa.lucznik3.%player%} to true set {klasa.lucznik2.sprawdz.%player%} to true else: if {money.gracz.%player%} is less than {cena.lucznik.3}: send "{@tag} &9&lNie masz tyle pieniedzy!" else: send "{@tag} &cMusisz najpierw kupic Poziom 1 oraz 2" if arg 4 is "4": if {klasa.lucznik4.sprawdz.%player%} is true: send "{@tag} &4Masz juz wykupiona klase Lucznik 4" if {klasa.lucznik3.%player%} is true: if {money.gracz.%player%} is greater than or equal to {cena.lucznik.4}: remove {cena.lucznik.4} from {money.gracz.%player%} add 1 bow of infinity 1 named "&aLuk poziom 4" to the player add 1 arrow named "&aszczaly" to the player add 1 Leather helmet of protection 3 named "&aCzapka poziom 4" to the player add 1 Leather boots of protection 3 named "&aButy poziom 4" to the player set {klasa.lucznik3.%player%} to false set {klasa.lucznik4.%player%} to true set {klasa.lucznik3.sprawdz.%player%} to true set {klasa.lucznik4.sprawdz.%player%} to true else if {money.gracz.%player%} is less than {cena.lucznik.4}: send "{@tag} &9&lNie masz tyle pieniedzy!" else: send "{@tag} &cMusisz najpierw kupic Poziom 1 oraz 2 oraz 3" if arg 1 is "opusc": if player has permissions "rush.gracz": if {SW.gracz.%player%} is false: send "{@tag} Nie jestes na zadnej arenie" if {SW.gracz.%player%} is true: teleport player to {tp.spawn} set {SW.gracz.%player%} to false remove 1 from {SW.number} else: send "{@tag} &cnie masz do tego uprawnien" if arg 1 is "dolacz": if player doesn't have permission "rush.gracz": send "{@tag} &cBrak uprawnien!" else: if {SW.gracz.%player%} is true: send "{@tag} &cJuz dolaczyles do areny" stop if {SW.number} is 2: send "{@tag} &cArena jest pelna" stop if {SW.mode} is 2: send "{@tag} &cArena jest w trakcie" stop if {tp.spawn} is set: set {SW.gracz.%player%} to true broadcast "SW.gracz.%player%: %{SW.gracz.%player%}%" add 1 to {SW.number} broadcast "SW.number: %{SW.number}%" clear inventory of player heal the player if {SW.number} is 1: teleport player to {tp.1} if {SW.number} is 2: teleport player to {tp.2} if {SW.number} is 3: teleport player to {tp.3} if {SW.number} is 4: teleport player to {tp.4} if {SW.number} is 5: teleport player to {tp.5} if {SW.number} is 6: teleport player to {tp.6} if {SW.number} is 7: teleport player to {tp.7} if {SW.number} is 8: teleport player to {tp.8} if {golden.apple.%player%} is true: add 1 Enchanted Golden Apple to player's inventory if {iron.helmet.%player%} is true: add 1 iron helmet to player's inventory if {klasa.lucznik1.%player%} is true: add 1 bow named "&aLuk poziom 1" to the player add 10 arrow named "&aszczaly" to the player add 1 Leather helmet named "&aCzapka poziom 1" to the player add 1 Leather boots named "&aButy poziom 1" to the player if {klasa.lucznik2.%player%} is true: add 1 bow named "&aLuk poziom 2" to the player add 10 arrow named "&aszczaly" to the player add 1 Leather helmet of protection 1 named "&aCzapka poziom 2" to the player add 1 Leather boots of protection 1 named "&aButy poziom 2" to the player if {klasa.lucznik3.%player%} is true: add 1 bow of power 1 named "&aLuk poziom 3" to the player add 15 arrow named "&aszczaly" to the player add 1 Leather helmet of protection 2 named "&aCzapka poziom 3" to the player add 1 Leather boots of protection 2 named "&aButy poziom 3" to the player if {klasa.lucznik4.%player%} is true: add 1 bow of infinity 1 named "&aLuk poziom 4" to the player add 1 arrow named "&aszczaly" to the player add 1 Leather helmet of protection 3 named "&aCzapka poziom 4" to the player add 1 Leather boots of protection 3 named "&aButy poziom 4" to the player set player's gamemode to survival broadcast "{@tag}: &7%player% &edolaczyl! (&c%{SW.number}%&e/&c8&e)" to "skywars" else: send "{@tag} &cSerwer nie ma stworzonego spawnu" arg 1 is "debug": player has permission "SW.admin": make console execute command "wr rebuild skywars" send "{@tag} &aDebugowanie..." wait 1 seconds loop players: set {SW.gracz.%loop-player%} to true send "zmienna: {SW.gracz.%loop-player%} %{SW.gracz.%loop-player%}%" set {SW.gracz.%loop-player%} to false send "zmienna: {SW.gracz.%loop-player%} %{SW.gracz.%loop-player%}%" set {SW.number} to 2 send "zmienna: {SW.number} %{SW.number}%" set {SW.number} to 0 send "zmienna: {SW.number} %{SW.number}%" set {SW.mode} to 2 send "zmienna: {SW.mode} %{SW.mode}%" set {SW.mode} to 0 send "zmienna: {SW.mode} %{SW.mode}%" set {SW.start} to true send "zmienna: {SW.start} %{SW.start}%" set {SW.start} to false send "zmienna: {SW.start} %{SW.start}%" set {SW.wygrana} to true send "zmienna: {SW.wygrana} %{SW.wygrana}%" set {SW.wygrana} to false send "zmienna: {SW.wygrana} %{SW.wygrana}%" send "{@tag} &aDebugowanie zakonczone pomyslnie!" if arg 1 is "reload": if player has permissions "sw.admin": make console execute command "sk reload skywars" else: send "nie masz do tego uprawnien" if arg 1 is "pkt": if player has permissions "pkt.gracz": send "&8<&6*&8>&5===============&8[&2&lPUNKTY&8]&5===============&8<&6*&8>" send "&aTwoje punkty: &6&l%{money.gracz.%player%}%" send "&8<&6*&8>&5=======================================&8<&6*&8>" else: send "nie masz do tego uprawnien" if arg 1 is "setspawn": if player has permissions "rush.admin": set {tp.spawn} to location of player send "Spawn ustawiono!" else: send "nie masz do tego uprawnien" if arg 1 is "setmiejsce": if arg 2 is "1": if player has permissions "rush.admin": set {tp.1} to location of player send "Spawn ustawiono!" else: send "nie masz do tego uprawnien" if arg 2 is "2": if player has permissions "rush.admin": set {tp.2} to location of player send "Spawn ustawiono!" else: send "nie masz do tego uprawnien" if arg 2 is "3": if player has permissions "rush.admin": set {tp.3} to location of player send "Spawn ustawiono!" else: send "nie masz do tego uprawnien" if arg 2 is "4": if player has permissions "rush.admin": set {tp.4} to location of player send "Spawn ustawiono!" else: send "nie masz do tego uprawnien" if arg 2 is "5": if player has permissions "rush.admin": set {tp.5} to location of player send "Spawn ustawiono!" else: send "nie masz do tego uprawnien" if arg 2 is "6": if player has permissions "rush.admin": set {tp.6} to location of player send "Spawn ustawiono!" else: send "nie masz do tego uprawnien" if arg 2 is "7": if player has permissions "rush.admin": set {tp.7} to location of player send "Spawn ustawiono!" else: send "nie masz do tego uprawnien" if arg 2 is "8": if player has permissions "rush.admin": set {tp.8} to location of player send "Spawn ustawiono!" else: send "nie masz do tego uprawnien" every 5 seconds: if {SW.number} is more than 1: if {SW.mode} is 0: if {SW.start} is false: loop players in world "skywars": set {SW.start} to true broadcast "&7{@tag} &eArena wystartuje za &c10 &esekund!" to "skywars" wait 1 seconds broadcast "&7{@tag} &eArena wystartuje za &c9 &esekund!" to "skywars" wait 1 seconds broadcast "&7{@tag} &eArena wystartuje za &c8 &esekund!" to "skywars" wait 1 seconds broadcast "&7{@tag} &eArena wystartuje za &c7 &esekund!" to "skywars" wait 1 seconds broadcast "&7{@tag} &eArena wystartuje za &c6 &esekund!" to "skywars" wait 1 seconds broadcast "&7{@tag} &eArena wystartuje za &c5 &esekund!" to "skywars" wait 1 seconds broadcast "&7{@tag} &eArena wystartuje za &c4 &esekund!" to "skywars" wait 1 seconds broadcast "&7{@tag} &eArena wystartuje za &c3 &esekund!" to "skywars" wait 1 seconds broadcast "&7{@tag} &eArena wystartuje za &c2 &esekund!" to "skywars" wait 1 seconds broadcast "&7{@tag} &eArena wystartuje za &c1 &esekund!" to "skywars" wait 1 seconds if {SW.number} is more than 1: broadcast "&7{@tag} &bPowodzenia!" to "skywars" execute loop-player command "/rg select 1" wait 1 tick execute loop-player command "//set 0" wait 1 tick execute loop-player command "/rg select 2" wait 1 tick execute loop-player command "//set 0" wait 1 tick execute loop-player command "/rg select 3" wait 1 tick execute loop-player command "//set 0" wait 1 tick execute loop-player command "/rg select 4" wait 1 tick execute loop-player command "//set 0" wait 1 tick execute loop-player command "/rg select 5" wait 1 tick execute loop-player command "//set 0" wait 1 tick execute loop-player command "/rg select 6" wait 1 tick execute loop-player command "//set 0" wait 1 tick execute loop-player command "/rg select 7" wait 1 tick execute loop-player command "//set 0" wait 1 tick execute loop-player command "/rg select 8" wait 1 tick execute loop-player command "//set 0" set {SW.mode} to 2 stop else: broadcast "&7{@tag} &cNie odpowiednia ilosc graczy do startu gry!" to "skywars" set {SW.start} to false stop every 5 seconds: if {SW.number} is 1: if {SW.wygrana} is false: if {SW.mode} is 2: loop players in world "skywars": set {SW.wygrana} to true broadcast "&6+&7-----------------------------------&6+" to "skywars" broadcast " &aWygrales(as) arene!" to "skywars" broadcast "&6+&7-----------------------------------&6+" to "skywars" broadcast " &6Zdobyto lacznie 20 Monet!" to "skywars" broadcast "&6+&7-----------------------------------&6+" to "skywars" play level_up at loop-player with pitch 1 teleport loop-player to {tp.spawn} wait 5 ticks add 20 to {money.gracz.%{_gracz}%} set {SW.gracz.%{_gracz}%} to false add 20 to {money.gracz.%{_player}%} set {SW.gracz.%{_player}%} to false set {SW.number} to 0 set {SW.mode} to 0 set {SW.start} to false set {SW.wygrana} to false execute console command "wr rebuild skywars" On rightclick holding feather: if world is "skywars": if name of player's tool is "&4SUPER JUMP": push the player upwards at velocity 2 push the player horizontally forward at speed 1 remove feather named "&4SUPER JUMP" from the player on rightclick on sign: line 1 is "&a[Dolacz]": line 2 is "SW": {SW.mode} is 0: set line 1 to "" set line 2 to "Dolaczanie..." wait 5 ticks execute player command "sw dolacz" wait 10 ticks set line 1 to "&a[Dolacz]" set line 2 to "SW" set line 3 to "" set line 4 to "%{SW.number}%/8" else if {SW.mode} is 1 or 2: set line 1 to "&4✖" set line 2 to "&4Arena jest" set line 3 to "&4w trakcie" set line 4 to "&4gry!" wait 2 seconds set line 1 to "&a[Dolacz]" set line 2 to "SW" set line 3 to "" set line 4 to "%{SW.number}%/8" else if {SW.number} is more than 1: set line 1 to "&4✖" set line 2 to "&4Arena jest" set line 3 to "&4pelna!" wait 2 seconds set line 1 to "&a[Dolacz]" set line 2 to "SW" set line 3 to "" set line 4 to "%{SW.number}%/8" send "{@tag} &cArena jest pelna!" on quit: {SW.gracz.%player%} is true: execute player command "sw opusc" on damage: if world is "skywars": damage cause is fall cancel event on death: if victim is player: if world is "skywars": send "{@tag} &cPrzegrales(as)!" to victim broadcast "&7{@tag} &aGracz &9%{atakujacy.%victim%}% &azabil &9%victim% &aza to dostal: &a5Punktow!" to "skywars" add 20 to {money.gracz.%{atakujacy.%victim%}%} teleport player to {tp.spawn} set {SW.gracz.%victim%} to false remove 1 from {SW.number} on rightclick with stick: add 1 feather named "&4SUPER JUMP" to the player on rightclick with emerald: show "{@show1}{@show2}" with 6 rows named "&4&lTwoje pieniadze: &b&l%{money.gracz.%player%}%" to player on chat: cancel event if player has permission "Headadmin.chat": send "&b&l[%{money.gracz.%player%}%] &e[&4&lHeadAdmin&e]&9 %player%&9&l>> &c%message%" to all players stop if player has permission "admin.chat": send "&b&l[%{money.gracz.%player%}%] &e[&4&lAdmin&e]&9 %player%&9&l>> &a%message%" to all players stop if player has permission "mod.chat": send "&b&l[%{money.gracz.%player%}%] &e[&2&lModerator&e]&f %player%&9&l>> &3%message%" to all players stop if player has permission "kidmod.chat": send "&b&l[%{money.gracz.%player%}%] &e[&a&lKid&2&lMod&e]&f %player%&9&l>> &6%message%" to all players stop if player has permission "technik.chat": send "&b&l[%{money.gracz.%player%}%] &e[&4&lTechnik&e]&9&l %player%&9&l>> &3%message%" to all players stop if player has permission "budowniczy.chat": send "&b&l[%{money.gracz.%player%}%] &e[&aBudowniczy&e]&f %player%&9&l>> &3%message%" to all players stop if player has permission "gracz.chat": send "&b&l[%{money.gracz.%player%}%] %player%&9&l>> &f%message%" to all players stop if player has permission "vip.chat": send "&b&l[%{money.gracz.%player%}%] &4[&eVip&4]&b %player%&9&l>> &f%message%" to all players stop if player has permission "Svip.chat": send "&b&l[%{money.gracz.%player%}%] &e[&b::&2SuperVip&b::&e]&6 %player%&9&l>> &f%message%" to all players stop