#----------------------------------------------------# # Wersja skryptu # # Version 1.0.0 Beta # # AUTOR SKRYPTU # # Kolabuga123 # # Kiedy nastepny Update? # # 2017.8.21 Wrzesnia # # Ostatni Update # # 30 Lipca 2017r Godzina 21:26 # # Zezwalam na: # # Zmiane wiadomosci # # Ulepszanie kodu # # Zabraniam # # Podzszywania sie pod autora skrypty # # Sprzedawania skryptu na cel własny # #----------------------------------------------------# Variables: {zombie} = 20 #Liczba zombie do odnowienia w ScoreBoardzie {ludzie} = 0 #Liczba ludzi ktora pojawia sie w ScoreBoardzie {wbiles.dayz.%player%} = true #Nie tykaj jak nie wiesz {leave.dayz} = true #Nie tykaj jak nie wiesz {noga.%player%} = false #Nie tykaj jak nie wiesz {ze.moby.status} = true {coins.%player%} = 0 {baza.%player%} = true options: gra: &c&LDay&a&LZ #Nazwa tabeli w scoreboard cena.chleb: 10 teren: 30 # Wielkosc terenu w tym przypadku to bedzie 30x30 options: tag: &c&LDay&a&LZ &e» item: brick nazwa.przedmiotu: &c&LDay&a&LZ &e» &cBaza odleglosc.cuba: 250 setblock.type: ender chest spawn.dystans: 250 teren: 50 wysokosc: 250 item.zapros.1: 32 diamond item.zapros.2: none item.zapros.3: none jestes.zbyt.blisko.innego.cuba: &7W poblizu jest juz baza! Minimalna odleglosc to 50 kratek tworzenie.cubba: &aTrwa budowa bazy! zbyt.blisko.spawnu: &7Jestes zbyt blisko spawnu! Limit.dzialek: &7Limit baz został osiagniety! zapraszenie.wylaczone: &7Nie posiadasz zadnego terenu aby muc zapraszac! nie.jestes.zalozycielem.zadnego.terenu: &cNie jestes zalozycielem zadnej bazy! nie.posiadasz: &7Nie posiadasz: &a{@item.zapros.1} &7lub &a{@item.zapros.2} &7lub &a{@item.zapros.3}&7! zostales.zaproszony: &7Zostales zaproszony do bazy! zeby.dolaczyc.wpisz: &7Aby dolaczyc wpisz &a/dolacz [nazwa bazy] &7. gracz.zostal.zaproszony: &7Gracz &a%arg% &7zostal zaproszony do twojej bazy! prawidlowe.uzycie: &7Prawidlowe uzycie to: &a/zapros [nick gracza] &7! podaj.nazwe.dzialki: &7Podaj nazwe bazy, aby dolaczyc do niej! jestes.jzu.czlonkiem: &7Jestes juz czlonkiem innej bazy! jestes.juz.zalozycielem: &7Jestes zaozycielem innej bazy! dolaczyles.do: &7Dolaczyles do dzialkii: &a%{dzialka.tag.%player%}%&7. nie.dostlaes.zaproszenia: &7Nie dostales zaproszenia od tej bazy! wyszedles.z.terenu: &cWyszedles z terenu bazy &a%{region.%player%.last}% wszedles.na.teren: &cWkroczyles na teren bazy &e%{_dzialka}% nie.mozesz.niszczyc: &cNie mozesz nic niszczyc na tym terenie! nie.mozesz.budowac: &cNie mozesz nic budowac na tym terenie! posiadasz.juz.dzialke: &7Posiadasz juz swoja baze! posiadasz.juz.dzialke.2: &3Jestes zalozycielem innej bazy nie mozesz miec 2! nie.jestes.zaozycielem: &eNie jestes zalozycielem bazy! podaj.nazwe.gracza: &ePodaj Nick gracza, ktorego chcesz wyrzucic! wyrzuciles.gracza.z.dzialki: &7Wyrzuciles gracza &a%arg% &7ze swojej bazy! zostales.wyrzucony.z.dzialki: &7Zostales wyrzucony z bazy! nie.mozesz.pvp: &7PvP w bazie zostalo wylaczone! ustawiles.spawn: &6Ustawiles nowy glowne lobby gry! nie.jestes.w.zadnej.dzialce: &7Nie jestes czlonkiem zadnej bazy! jestes.zalozycielem.nie.mozesz: &7Jestes &aZalozycielem &7nie mozesz opuscic swojej bazy! nie.mozesz.wyrzucic: &cNie mozesz wyrzucic siebie z bazy! usunoles.swoja.dzialke: &cTeren bazy zostal usuniety opusciles.dzialke: &cOpusciles baze! variables: {dzialka.%player%.limit.claim} = false on script load: register new shaped recipe for bricks named "&c&LDay&a&LZ &e» &cBaza" using dirt, dirt, dirt, sand, sugar, sand, sand, sand, sand #---------------------------# # Komendy # #---------------------------# command /dayz [] []: trigger: if arg 1 is not set: if player has permission "admin.dayz": send "&b &c&LDay&a&LZ " send "&7-&e» &a/dayz setlobby [1-2] &7- Ustawia lobby." send "&7-&e» &a/dayz setzombie &7- Ustawia spawny zombie" send "&7-&e» &a/dayz wyjdz &7- Wychodzi z areny" send "&7-&e» &a/dayz dolacz &7- Dolacza do areny" send "&7-&e» &a/dayz baza &7- Pomoc przy tworzeniu bazy" send "&7-&e» &a/dayz sklep &7- Otwiera sklep" if arg 1 is "setzombie": if player has permission "admin.dayz": if arg 2 is "1": set {zombie.1} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 2 is "2": set {zombie.2} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 2 is "3": set {zombie.3} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 2 is "4": set {zombie.4} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 2 is "5": set {zombie.5} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 2 is "6": set {zombie.6} to location of player send "&c&LDay&a&LZ &e» &bUstawiono spawn dla Zombie &eSpawn (%arg 2%)" if arg 1 is "setlobby": if arg 2 is "1": set {lobby.1} to location of player send "&c&LDay&a&LZ &e» &bUstawiono Lobby &eSpawn (%arg 2%)" if arg 2 is "2": set {lobby.2} to location of player send "&c&LDay&a&LZ &e» &bUstawiono Lobby &eSpawn (%arg 2%)" if arg 1 is "sklep": open chest with 5 rows named "&e&lSKLEP" to player wait 1 tick format slot 0 of player with 1 of 351:1 named "&cCukierek" with lore "&B&M------------------------------ ||&9Cena&7: &e10 &9Ilosc&7: &e1||&eDostepny &A&l✔||&B&M------------------------------" to close then run [execute player command "sklepitem kupcukierka"] format slot 1 of player with 1 of 297 named "&eChlebek" with lore "&B&M------------------------------ ||&9Cena&7: &e10 &9Ilosc&7: &e1||&eDostepny &A&l✔||&B&M------------------------------" to close then run [execute player command "sklepitem kupchlebek"] format slot 2 of player with 1 of paper named "&bBandaz" with lore "&B&M------------------------------ ||&9Cena&7: &e10 &9Ilosc&7: &e1||&eDostepny &A&l✔||&B&M------------------------------" to close then run [execute player command "sklepitem kupbandaz"] send "&c&LDay&a&LZ &e» &bOtworzono sklepik" if arg 1 is "dolacz": if {wbiles.dayz.%player%} is true: set {wbiles.dayz.%player%} to false add 1 to {ludzie} send "" send "" send "&a&m&l▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼" send " &c&LDay&a&LZ " send " " send " &9Aby przejsc na mape musisz wejsc do helikoptera!" send " &bNa czym polega gra? Wpisz /dayz pomoc " send " &9Liczba graczy na &c&LDay&a&LZ &9to &e%{ludzie}%&9." send "" send "&a&m&l▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲" broadcast "&c&LDay&a&LZ &e» &3Gracz &e%player% &3dolaczył do gry Graczy &e%{ludzie}%/30" else: send "&c&LDay&a&LZ &e» &bJestes juz na arenie!" stop if arg 1 is "wyjdz": if {wbiles.dayz.%player%} is false: set {wbiles.dayz.%player%} to true remove 1 from {ludzie} send "&c&LDay&a&LZ &e» &aGracz &e%player% &aopuscil gre!" else: send "&c&LDay&a&LZ &e» &bNie jestes na arenie" stop if arg 1 is "znpc": if arg 2 is "sklep": spawn zombie at location of player apply slowness 100000 to spawned zombie for 999 days apply fire resistance 100000 to spawned zombie for 999 days set helmet of spawned entity to zombie head spawn 100 of particle witch magic:1 offset by 0.6, 0.10, 0.7 at spawned entity wait 2 second spawn 100 of particle witch magic:1 offset by 0.6, 0.10, 0.7 at spawned entity wait 1 tick set name of spawned entity to "&e&LSklep" send "&6Stworzyles Villagera!" stop if arg 1 is "usun": execute player command "usun" command /sklepitem []: trigger: if arg 1 is "kupchlebek": if {coins.%player%} is less than {@cena.chleb}: send "&c&LDay&a&LZ &e» &bNie Posiadasz &d{@cena.chleb} coinsow! &bPosiadasz: &d%{coins.%player%}% &bcoinsow" stop if {coins.%player%} is equal to {@cena.chleb}: remove {@cena.chleb} from {coins.%player%} give player 297 named "&eChlebek" send "&c&LDay&a&LZ &e» &bPomyslnie zakupiono &eChlebek. &bKoszt &d{@cena.chleb}. &bStan konta &d%{coins.%player%}%" stop if {coins.%player%} is more than {@cena.chleb}: remove {@cena.chleb} from {coins.%player%} give player 297 named "&eChlebek" send "&c&LDay&a&LZ &e» &bPomyslnie zakupiono &eChlebek. &bKoszt &d{@cena.chleb}. &bStan konta &d%{coins.%player%}%" stop if arg 1 is "kupbandaz": if {coins.%player%} is less than 5: send "&7Nie Posiadasz 5 coinsow! &aPosiadasz: %{coins.%player%}% coinsow" stop if {coins.%player%} is equal to 5: remove 5 from {coins.%player%} give player paper named "&b&lBandaz" send "&c&LDay&a&LZ &e» &3Pomyslnie zakupiono &eBandaz. &3Koszt 5zł. &3Stan konta %{coins.%player%}%" stop if {coins.%player%} is more than 5: remove 5 from {coins.%player%} give player paper named "&b&lBandaz" with lore "&eMozesz sie nim uleczyc &APPM" send "&c&LDay&a&LZ &e» &bPomyslnie zakupiono &eBandaz. &bKoszt &d5zl. &bStan konta &d%{coins.%player%}%" stop #---------------------------# # Eventy # #---------------------------# on rightclick on zombie: if name of zombie is "&e&lSklep": spawn 100 of particle witch magic:1 offset by 0.6, 0.10, 0.7 at spawned entity cancel event execute player command "dayz sklep" On death of zombie: if attacker is a player: remove 1 from {zombie} if {zombie} = 0: set {zombie} to 1 spawn 19 zombie at {zombie.1} wait 1 second spawn 10 zombie at {zombie.2} add 10 to {zombie} wait 3 second spawn 10 zombie at {zombie.3} add 10 to {zombie} wait 5 second spawn 10 zombie at {zombie.4} add 10 to {zombie} add 1 to {coins.%player%} on death of player: if attacker is a zombie: broadcast "&c&LDay&a&LZ &e» &bGracz %player% został zabity przez zombie" on rightclick with paper: if player is holding a paper named "&b&lBandaz" with lore "&eMozesz sie nim uleczyc &APPM": if player's health is 10: send "&c&LDay&a&LZ &e» &bNie mozesz sie teraz uleczyc" stop else: heal the player by 4 heart send "&c&LDay&a&LZ &e» &bUleczono &a4 &bserca" remove 1 paper from the player remove slowness from player spawn 100 of particle witch magic:1 offset by 0.6, 0.10, 0.7 at player stop on quit: execute player command "dayz wyjdz" on rightclick holding a rose red: if name of player's tool is "&cCukierek": apply speed to the player for 60 seconds add 1 to {pkt.%player%} remove 1 rose red named "&cCukierek" from player's tool on damage of player: if damage is caused by fall: chance of 88%: set {zlamanie.%victim%} to true apply slowness 3 to victim for 9999999 days send "&c&LDay&a&LZ &e» &bZlamales noge! Uzyj bandazu!" to victim spawn 100 of particle witch magic:1 offset by 0.4, 0.7, 0.4 at victim display "&c&LDay&a&LZ &e» &c&lZlamales noge! Uzyj bandazu!" on bossbar with 100 percent by 5 seconds for victim on spawn: entity is in world "world": if {ze.moby.status} is true: entity is zombie: chance of 80%: set name of entity to "MagicZombie" set max health of spawned entity to 30 heal the spawned entity apply regeneration 1 to the entity for 10000 minutes apply speed 3 to the entity for 10000 minutes chance of 90%: set name of entity to "&6Tank" set max health of spawned entity to 60 heal the spawned entity apply regeneration 1 to the entity for 10000 minutes chance of 60%: set name of entity to "&aHardcoreZombie" set max health of spawned entity to 60 heal the spawned entity apply jump 3 to the entity for 10000 minutes chance of 40%: set name of entity to "&aAngryZombie" set max health of spawned entity to 30 heal the spawned entity apply speed 1 to the entity for 10000 minutes stop #---------------------------# # ScoreBoard # #---------------------------# every 10 ticks: loop all players: display board named "&a{@gra}" to loop-player make score " &a● &eGracz" in board of loop-player to 15 make score " &a» &e%loop-player%" in board of loop-player to 14 make score "&f " in board of loop-player to 13 make score " &a» &eZombie" in board of loop-player to 12 make score " &a● &d%{zombie}%" in board of loop-player to 11 make score "&f" in board of loop-player to 10 make score " &a» &eLudzi" in board of loop-player to 9 make score " &a● &d%{ludzie}%" in board of loop-player to 8 make score " &a● &eMonety" in board of loop-player to 7 move display of loop-player to sidebar #---------------------------# # Helikoptery# #---------------------------# options: xMin: -10 xMax: 10 zMin: -10 zMax: 10 yMin: 15 yMax: 20 world: escape aliases: blocktpr = 1, 2, 3, 4, 12, 13, 49, 7, 8, 5, 18, 172, 24, 9 variables: {godteleport.%player%} = false on walking on wood: block behind target block is air: set {_targetx} to a random integer between {@xMin} and {@xMax} set {_targetz} to a random integer between {@zMin} and {@zMax} set {_targety} to 0 set {_random.pos} to location at {_targetx}, {_targety}, {_targetz} biome at {_random.pos} is ocean or river or deep ocean: send "&c&LDay&a&LZ &e» &cNie mozesz zostac zrzucony na ocean" else: loop blocks above the block at location of {_random.pos}: if block at location of loop-block is blocktpr: if block above the block at location of loop-block is air or water: if block 1 above the block at location of loop-block is air: if block 2 above the block at location of loop-block is air: set {_pos} to block above the block at location of loop-block apply speed 3 to the player for 15 seconds apply regeneration 10 to the player for 10 seconds set {godteleport.%player%} to true send "&c&LDay&a&LZ &e» &eZostałes zrzucony z helikoptera na kordy &6x: %{_targetx}% z: %{_targetz}%&7!" to player send "&c&LDay&a&LZ &e» &cOd teraz musisz dbac sam o siebie! Powodzenia!" send "&c&LDay&a&LZ &e» &eOd wojska dostajesz tylko &a1 bandaż &e, &a2 puszki sardynki &e, &a1 Cole!" give player water bottle named "&b&lWoda" with lore "&eMozesz sie napic &APPM" give player raw fish named "&cSardynka" with lore "&eMozesz sie nim uleczyc &APPM" give player stick of sharpness 1 named "&9Kijek" with lore "&eTwoja pierwsza bron!" wait 1 second send "&c&LDay&a&LZ &e» &aUwazaj na innych graczy! I na głodne zombie!" teleport player to {_pos} wait 10 seconds set {godteleport.%player%} to false stop on damage: if {godteleport.%victim%} is true: cancel event #---------------------------# # Głowne-bazy # #---------------------------# on rightclick with {@item}: {m.%player%} is set: send "{@tag} {@posiadasz.juz.dzialke}" stop {l.%player%} is set: send "{@tag} {@posiadasz.juz.dzialke.2}" stop player is holding bricks named "{@nazwa.przedmiotu}" if distance between {spawn} and location of player is greater than {@spawn.dystans}+{@teren}/2: if {dzialka.%player%.limit.claim} is false: loop {lista.cuboidow::*}: {srodek.cuboida.%loop-value%} and location of player is smaller than {@odleglosc.cuba} Send "{@jestes.zbyt.blisko.innego.cuba}" Stop set {dzialka.tag.%player%} to "%name of player%" set {_nick} to player send "{@tag} {@tworzenie.cubba}" wait 1 second new Region "%{dzialka.tag.%player%}%"; set {_loc} to location of player "%{dzialka.tag.%player%}%".Region.selectLS{{_loc}, {@teren}}; "%{dzialka.tag.%player%}%".Region.setHeight{{@wysokosc}}; add {_nick} to {regiony.czlonkowie.%{dzialka.tag.%player%}%::*} set {region.szef.%{dzialka.tag.%player%}%} to {_nick} set block under the player to {@setblock.type} Set {srodek.cuboida.%{dzialka.tag.%player%}%} to location of player set {dzialka.%player%.zapraszanie} to true set {dzialka.%player%.limit.claim} to true set {l.%player%} to "%{dzialka.tag.%player%}%" add {dzialka.tag.%player%} to {lista.cuboidow::*} remove 1 bricks named "{@nazwa.przedmiotu}" from player send " &c&LDay&a&LZ " send " &aStworzyles wlasny teren bazy! " send " &eDodawaj graczy aby wspolnie bronic" send " &eSie przed &azombie &ei innymi &agraczami! " send " &3Powodzenia! " stop else: send "{@tag} {@Limit.dzialek}" stop else: send "{@tag} {@zbyt.blisko.spawnu}" stop command /usun: trigger: {m.%player%} is not set: send "{@tag} {@nie.jestes.w.zadnej.dzialce}" {l.%player%} is not set: send "{@tag} {@nie.jestes.zaozycielem}" stop loop {regiony.czlonkowie.%{dzialka.tag.%player%}%::*}: loop-value is "%loop-value%": delete {m.%loop-value%} "%{dzialka.tag.%player%}%".Region.delete{} set block under {srodek.cuboida.%{dzialka.tag.%player%}%} to air clear {regiony.czlonkowie.%{dzialka.tag.%player%}%::*} clear {region.szef.%{dzialka.tag.%player%}%} clear {srodek.cuboida.%{dzialka.tag.%player%}%} remove {dzialka.tag.%player%} from {lista.cuboidow::*} set {dzialka.%player%.zapraszanie} to false set {dzialka.%player%.limit.claim} to false delete {l.%player%} send "{@tag} {@usunoles.swoja.dzialke}" stop command /zapros []: trigger: arg 1 is set: {dzialka.%player%.zapraszanie} is false: send "{@tag} {@zapraszenie.wylaczone" stop {l.%player%} is not set: send "{@tag} {@nie.jestes.zalozycielem.zadnego.terenu}" stop if player doesn't have {@item.zapros.1} and {@item.zapros.2} and {@item.zapros.3}: send "{@tag} {@nie.posiadasz}" stop remove {@item.zapros.1} and {@item.zapros.2} and {@item.zapros.3} from player add "%arg%" to {dz-%{dzialka.tag.%player%}%.invites::*} send "{@tag} {@zostales.zaproszony}" to arg player send "{@tag} {@zeby.dolaczyc.wpisz}" to arg player send "{@tag} {@gracz.zostal.zaproszony}" stop else: send "{@tag} {@prawidlowe.uzycie}" stop command /dolacz []: trigger: arg 1 is not set: send "{@tag} {@podaj.nazwe.dzialki}" stop {m.%player%} is set: send "{@tag} {@jestes.jzu.czlonkiem}" {l.%player%} is set: send "{@tag} {@jestes.juz.zalozycielem}" loop {dz-%arg%.invites::*}: loop-value is "%player%": set {dzialka.tag.%player%} to arg set {_nick} to player add {_nick} to {regiony.czlonkowie.%arg 1%::*} remove "%player%" from {dz-%{dzialka.tag.%player%}%.invites::*} send "{@tag} {@dolaczyles.do}" stop send "{@tag} {@nie.dostlaes.zaproszenia}" stop on anymove: if {region.%player%.last} is not set: set {region.%player%.last} to "Brak" if Region.at{location of player} is not set: set {_dzialka} to "Brak" else: set {_dzialka} to Region.at{location of player} if {_dzialka} is not {region.%player%.last}: if {_dzialka} is "None" or "" or "Brak": display "{@wyszedles.z.terenu}" on bossbar with 100 percent by 10 seconds for player else: display "{@wszedles.na.teren}" on bossbar with 100 percent by 10 seconds for player set {region.%player%.last} to {_dzialka} on break: player doesn't have permission "dzialka.niszczenie": location of event-block is in any region: set {_rg} to Region.at{location of event-block}; if {regiony.czlonkowie.%{_rg}%::*} contains player: stop send "{@nie.mozesz.niszczyc}" cancel event stop on place: player doesn't have permission "dzialka.budowanie": location of event-block is in any region: set {_rg} to Region.at{location of event-block}; if {regiony.czlonkowie.%{_rg}%::*} contains player: stop send "{@nie.mozesz.budowac}" cancel event stop command /wyrzuc []: trigger: arg 1 is not set: send "{@tag} {@podaj.nazwe.gracza}" stop {m.%player%} is set: send "{@tag} {@nie.jestes.zaozycielem}" stop arg is "%player%": send "{@tag} {@nie.mozesz.wyrzucic}" stop {l.%player%} is set: set {_nick} to arg player remove {_nick} from {regiony.czlonkowie.%{dzialka.tag.%player%}%::*} delete {dzialka.tag.%arg%} delete {m.%arg%} send "{@tag} {@wyrzuciles.gracza.z.dzialki}" send "{@tag} {@zostales.wyrzucony.z.dzialki}" to arg player stop command /opusc: trigger: {m.%player%} is not set: send "{@tag} {@nie.jestes.w.zadnej.dzialce}" {l.%player%} is set: send "{@tag} {@jestes.zalozycielem.nie.mozesz}" stop set {_nick} to player remove {_nick} from {regiony.czlonkowie.%{dzialka.tag.%player%}%::*} delete {dzialka.tag.%player%} delete {m.%player%} send "{@tag} {@opusciles.dzialke}" stop command /dzialka []: aliases: dz, d, dial, plotme, plot, iplot, trigger: arg 1 is not set: send "&8##&7========== {@tag} &7==========&8##" send "&2&l/zapros [nick] &7-- Zaprasza Gracza do dzialki" send "&2&l/dolacz [nazwa] &7-- Potwierdzenie zaproszenia" send "&2&l/wyrzuc [nick] &7-- Wyrzuca Gracza z dzialki" send "&2&l/opusc &7-- Opuszcza dzialke" send "&2&l/usun &7-- Usuwa dzialke" send "&2&l/autor &7-- Autor dzialek" send "&2&l/dz admin &7-- Komendy dla Admina" send "&8##&7========== {@tag} &7==========&8##" arg 1 is "admin": send "&8##&7========== {@tag} &7==========&8##" send "&2&l/dz admin &7-- Komendy dla Admina" send "&2&l/dz setspawn &7-- Ustawia spawn dla dzialek" send "&2&l/dz daj &7-- Daje przedmiot do zakladania cuba" send "&8##&7========== {@tag} &7==========&8##" arg 1 is "setspawn": if player has permission "dzialki.admin": set {spawn} to location of player send "{@tag} {@ustawiles.spawn}" stop else: send "{@tag} &cNie masz uprawnien do tej komendy!" stop arg 1 is "daj": if player has permission "dzialki.admin": give 1 {@item} of Unbreaking 10 named "{@nazwa.przedmiotu}" to player send "{@tag} &7Dostales {@nazwa.przedmiotu}" stop else: send "{@tag} &cNie masz uprawnien do tej komendy!" stop