options: cooldawn: 30 #działa na pojedyncze efekty kosztsila1: 32 #koszt sily 1 kosztsila2: 64 #koszt sily 2 czassily1: 150 #czas w sekundach trwania sily 1 czassily2: 150 #czas w sekundach trwania sily 2 kosztskok2: 6 #koszt skoku 2 kosztskok3: 32 #koszt skoku 3 czasskoku2: 60 #czas w sekundach trwania skoku 2 czasskoku3: 30 #czas w sekundach trwania skoku 3 kosztszybkosc2: 6 #koszt szybkosci 2 kosztszybkosc3: 24 #koszt szybkosci 3 czasszybkosc2: 150 #czas w sekundach trwania szybkosci 2 czasszybkosc3: 60 #czas w sekundach trwania szybkosci 3 koszthaste1: 12 #koszt szybkiego kopania 1 koszthaste2: 24 #koszt szybkiego kopania 2 koszthaste3: 36 #koszt szybkiego kopania 3 czashaste1: 300 #czas w sekundach trwania szybkiego kopania 1 czashaste2: 300 #czas w sekundach trwania szybkiego kopania 2 czashaste3: 300 #czas w sekundach trwania szybkiego kopania 3 kosztallefekty: 128 #koszt wszystkich efektow do kupienia na raz kosztusuniecia: 32 #koszt usuniecia wszystkich efektow z gracza command /efekty []: trigger: set {_gui} to chest inventory with 6 rows named "&7&l&oEFEKTY SERWEROWE" set slot (integers between 0 and 8) of {_gui} to black stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 9 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 10 of {_gui} to iron sword named " " with lore " &8&m------&r&8» &f&l&oSila I &8«&8&m------&r" and "" and "&8» &e&oCzas trwania: &c&l2.5 min" and "" and "&8» &e&oKoszt: &c&l{@kosztsila1} Bloki Emeraldów" and "" and " &8&m------&r&8» &f&l&oSila I &8«&8&m------&r" set slot 11 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 12 of {_gui} to iron boots named " " with lore " &8&m------&r&8» &f&l&oSkok II &8«&8&m------&r" and "" and "&8» &e&oCzas trwania: &c&l1 min" and " " and "&8» &e&oKoszt: &c&l{@kosztskok2} Bloki Emeraldów" and "" and " &8&m------&r&8» &f&l&oSkok II &8«&8&m------&r" set slot 13 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 14 of {_gui} to feather named " " with lore "&8&m------&r&8» &f&l&oSzybkosc II &8«&8&m------&r" and "" and "&8» &e&oCzas trwania: &c&l2.5 min" and " " and "&8» &e&oKoszt: &c&l{@kosztszybkosc2} Bloki Emeraldów" and " " and "&8&m------&r&8» &f&l&oSzybkosc II &8«&8&m------&r" set slot 15 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 16 of {_gui} to iron pickaxe named " " with lore "&8&m------&r&8» &f&l&oSzybkie kopanie I &8«&8&m------&r" and " " and "&8» &e&oCzas trwania: &c&l5 min" and "" and "&8» &e&oKoszt: &c&l{@koszthaste1} Bloki Emeraldów" and " " and "&8&m------&r&8» &f&l&oSzybkie kopanie I &8«&8&m------&r" set slot 17 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 18 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 19 of {_gui} to gold sword named " " with lore " &8&m------&r&8» &f&l&oSila II &8«&8&m------&r" and "" and "&8» &e&oCzas trwania: &c&l2.5 min" and "" and "&8» &e&oKoszt: &c&l{@kosztsila2} Bloki Emeraldów" and " " and " &8&m------&r&8» &f&l&oSila II &8«&8&m------&r" set slot 20 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 21 of {_gui} to gold boots named " " with lore "&8&m------&r&8» &f&l&oSkok III &8«&8&m------&r" and "" and "&8» &e&oCzas trwania: &c&l30 sek" and "" and "&8» &e&oKoszt: &c&l{@kosztskok3} Bloki Emeraldów" and " " and "&8&m------&r&8» &f&l&oSkok III &8«&8&m------&r" set slot 22 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 23 of {_gui} to feather named " " with lore "&8&m------&r&8» &f&l&oSzybkosc III &8«&8&m------&r" and "" and "&8» &e&oCzas trwania: &c&l1 min" and "" and "&8» &e&oKoszt: &c&l{@kosztszybkosc3} Bloki Emeraldów" and "" and "&8&m------&r&8» &f&l&oSzybkosc III &8«&8&m------&r" set slot 24 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 25 of {_gui} to gold pickaxe named " " with lore "&8&m------&r&8» &f&l&oSzybkie kopanie II &8«&8&m------&r" and "" and "&8» &e&oCzas trwania: &c&l5 min" and "" and "&8» &e&oKoszt: &c&l{@koszthaste2} Bloki Emeraldów" and "" and "&8&m------&r&8» &f&l&oSzybkie kopanie II &8«&8&m------&r" set slot 26 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 27 of {_gui} to black stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot (integers between 28 and 33) of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 34 of {_gui} to diamond pickaxe named " " with lore "&8&m------&r&8» &f&l&oSzybkie kopanie III &8«&8&m------&r" and " " and "&8» &e&oCzas trwania: &c&l5 min" and "" and "&8» &e&oKoszt: &c&l{@koszthaste3} Bloki Emeraldów" and "" and "&8&m------&r&8» &f&l&oSzybkie kopanie III &8«&8&m------&r" set slot 35 of {_gui} to black stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 36 of {_gui} to black stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 37 of {_gui} to black stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 38 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 39 of {_gui} to lava bucket named " " with lore "&8&m------&r&8» &e&l&oWszystkie Efekty &8«&8&m------&r" and "" and "&8» &e&oCzas trwania: &c&l2 min" and " " and "&8» &e&oKoszt: &c&l{@kosztallefekty} Bloki Emeraldów" and "" and "&8&m------&r&8» &e&l&oWszystkie Efekty &8«&8&m------&r" set slot 40 of {_gui} to black stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 41 of {_gui} to bucket named " " with lore "&8&m------&r&8» &c&l&oUsun wszystkie efekty &8«&8&m------&r" and "" and "&8» &e&oKoszt: &c&l{@kosztusuniecia} Bloki Emeraldów" and "" and "&8&m------&r&8» &c&l&oUsun wszystkie efekty &8«&8&m------&r" set slot 42 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot (integers between 43 and 44) of {_gui} to black stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot (integers between 45 and 47) of {_gui} to black stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 48 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 49 of {_gui} to black stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot 50 of {_gui} to green stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" set slot (integers between 51 and 53) of {_gui} to black stained glass pane named "&8&m-----------" with lore "&8» &cPuste Pole!" and "&8» &cWybierz inna pozycje!" and "&8&m-----------" open {_gui} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&7&l&oEFEKTY SERWEROWE": cancel event if clicked slot is 10: if player has {@kosztsila1} emerald block: if difference between {silka::%player%} and now is smaller than {@cooldawn} seconds: send "&7» &cPoczekaj {@cooldawn} sek" stop else: set {silka::%player%} to now remove {@kosztsila1} emerald block from player's inventory apply strength 1 to the player for {@czassily1} second replacing existing effect send "&7» &aZakupiono efekt &cSily 1 &a na &c2.5 min" else: send "&7» &cNie posiadasz tylu bloków emeraldu!" if clicked slot is 12: if player has {@kosztskok2} emerald block: if difference between {skok::%player%} and now is smaller than {@cooldawn} seconds: send "&7» &cPoczekaj {@cooldawn} sek" stop else: set {skok::%player%} to now remove {@kosztskok2} emerald block from player's inventory apply jump boost 2 to the player for {@czasskoku2} second replacing existing effect send "&7» &aZakupiono efekt &cSkoku 2 &a na &c1 min" else: send "&7» &cNie posiadasz tylu bloków emeraldu!" if clicked slot is 14: if player has {@kosztszybkosc2} emerald block: if difference between {speed::%player%} and now is smaller than {@cooldawn} seconds: send "&7» &cPoczekaj {@cooldawn} sek" stop else: set {speed::%player%} to now remove {@kosztszybkosc2} emerald block from player's inventory apply speed 2 to the player for {@czasszybkosc2} second replacing existing effect send "&7» &aZakupiono efekt &cSzybkosci 2 &a na &c2.5 min" else: send "&7» &cNie posiadasz tylu bloków emeraldu!" if clicked slot is 16: if player has {@koszthaste1} emerald block: if difference between {haste::%player%} and now is smaller than {@cooldawn} seconds: send "&7» &cPoczekaj {@cooldawn} sek" stop else: set {haste::%player%} to now remove {@koszthaste1} emerald block from player's inventory apply haste 1 to the player for {@czashaste1} second replacing existing effect send "&7» &aZakupiono efekt &cSzybkiego kopania 1 &a na &c5 min" else: send "&7» &cNie posiadasz tylu bloków emeraldu!" if clicked slot is 19: if player has {@kosztsila2} emerald block: if difference between {silka::%player%} and now is smaller than {@cooldawn} seconds: send "&7» &cPoczekaj {@cooldawn} sek" stop else: set {silka::%player%} to now remove {@kosztsila2} emerald block from player's inventory apply strength 2 to the player for {@czassily2} second replacing existing effect send "&7» &aZakupiono efekt &cSily 2 &a na &c2.5 min" else: send "&7» &cNie posiadasz tylu bloków emeraldu!" if clicked slot is 21: if player has 32 emerald block: if difference between {skok::%player%} and now is smaller than {@cooldawn} seconds: send "&7» &cPoczekaj {@cooldawn} sek" stop else: set {skok::%player%} to now remove 32 emerald block from player's inventory apply jump boost 3 to the player for {@czasskoku3} second replacing existing effect send "&7» &aZakupiono efekt &cSkoku 3 &a na &c30 sek" else: send "&7» &cNie posiadasz tylu bloków emeraldu!" if clicked slot is 23: if player has {@kosztszybkosc3} emerald block: if difference between {speed::%player%} and now is smaller than {@cooldawn} seconds: send "&7» &cPoczekaj {@cooldawn} sek" stop else: set {speed::%player%} to now remove {@kosztszybkosc3} emerald block from player's inventory apply speed 3 to the player for {@czasszybkosc3} second replacing existing effect send "&7» &aZakupiono efekt &cSzybkosci 3 &a na &c1 min" else: send "&7» &cNie posiadasz tylu bloków emeraldu!" if clicked slot is 25: if player has {@koszthaste2} emerald block: if difference between {haste::%player%} and now is smaller than {@cooldawn} seconds: send "&7» &cPoczekaj {@cooldawn} sek" stop else: set {haste::%player%} to now remove {@koszthaste2} emerald block from player's inventory apply haste 2 to the player for {@czashaste2} second replacing existing effect send "&7» &aZakupiono efekt &cSzybkie kopanie 2 &a na &c5 min" else: send "&7» &cNie posiadasz tylu bloków emeraldu!" if clicked slot is 34: if player has {@koszthaste3} emerald block: if difference between {haste::%player%} and now is smaller than {@cooldawn} seconds: send "&7» &cPoczekaj {@cooldawn} sek" stop else: set {haste::%player%} to now remove {@koszthaste3} emerald block from player's inventory apply haste 3 to the player for {@czashaste3} second replacing existing effect send "&7» &aZakupiono efekt &cSzybkie kopania 3 &a na &c5 min" else: send "&7» &cNie posiadasz tylu bloków emeraldu!" if clicked slot is 39: if player has {@kosztallefekty} emerald block: remove {@kosztallefekty} emerald block from player's inventory apply speed 3 to the player for {@czasszybkosc3} second replacing existing effect apply haste 3 to the player for {@czashaste3} second replacing existing effect apply jump boost 3 to the player for {@czasskoku3} second replacing existing effect apply strength 2 to the player for {@czassily2} second replacing existing effect send "&7» &aZakupiono wszystkie możliwe efekty! Posiadasz: szybkosc 3, szybkie kopanie 3, wysoki skok 3, sila 2" else: send "&7» &cNie posiadasz tylu bloków emeraldu!" if clicked slot is 41: if player has {@kosztusuniecia} emerald block: remove {@kosztusuniecia} emerald block from player's inventory remove speed from player remove absorption from player remove jump boost from player remove haste from player remove strength from player remove slowness from player remove Fire Resistance from player remove Weakness from player send "&7» &cUsunieto wszystkie efekty!" else: send "&7» &cNie posiadasz tylu bloków emeraldu!"