every 1 second: loop {zakupili::*}: if {klasa::%loop-value%} is "MAG": if difference between now and {klasa::%loop-value%::czas} >= 2 days: if loop-value is online: clear {klasa::%loop-value%} clear {klasa::%loop-value%::czas} clear {zakupili::%loop-value%} remove speed from loop-value parsed as player else: apply speed 2 to loop-value for 1000 second if {klasa::%loop-value%} is "GORNIK" or "TERMINATOR": if difference between now and {klasa::%loop-value%::czas} >= 3 days: if loop-value is online: clear {klasa::%loop-value%} clear {klasa::%loop-value%::czas} clear {zakupili::%loop-value%} set loop-value's max health to 10 if {klasa::%loop-value%} is "VAMPIR": if difference between now and {klasa::%loop-value%::czas} >= 2 days: if loop-value is online: clear {klasa::%loop-value%} clear {klasa::%loop-value%::czas} clear {zakupili::%loop-value%} remove speed from loop-value parsed as player if {klasa::%loop-value%} is "H": if difference between now and {klasa::%loop-value%::czas} >= 2 days: if loop-value is online: clear {klasa::%loop-value%} clear {klasa::%loop-value%::czas} clear {zakupili::%loop-value%} remove speed from loop-value parsed as player command /klasy [] []: trigger: if arg-1 is not set: open chest with 3 rows named "&6&lKLASY" to player wait 2 tick loop 27 times: format slot loop-number -1 of player with light gray glass pane named " " to be unstealable format slot 1 of player with potion named "&2&LKLASA: &5&lMAG" with lore "&2&LDaje:||&2&L- Speed II||&2&L- Wiecej exp przy kopaniu||&2&LKoszt: 4000 $||&2&LCzas : 2 dni" to close then run [execute player command "klasy kupuje 1"] format slot 2 of player with coal named "&2&LKLASA: &8&lGORNIK" with lore "&2&LDaje:||&2&L- Zielazny miecz||&2&L- Zielazna siekiera||&2&L- Zielazny kilof||&2&L- 25 chleba||&2&L- po wykapaniu 64 stone daje 50$||&2&LKoszt: 3000 $||&2&LCzas : 3 dni" to close then run [execute player command "klasy kupuje 2"] format slot 3 of player with diamond sword named "&2&LKLASA: &c&lTERMINATOR" with lore "&2&LDaje:||&2&L- 5 dodatkowych serc||&2&L- bijesz o 0.5 srca wiecej||&2&L- po zabiciu otrzymujesz 30$||&2&LKoszt: 10000 $||&2&LCzas : 3 dni" to close then run [execute player command "klasy kupuje 3"] format slot 4 of player with Stone named "&2&LKLASA: &c&lVAMPIR" with lore "&2&LDaje:||&2&L- 5 dodatkowych serc||&2&L- bijesz o 0.5 srca wiecej||&2&L- po zabiciu otrzymujesz 30$||&2&LKoszt: 10000 $||&2&LCzas : 3 dni" to close then run [execute player command "klasy kupuje 3"] format slot 5 of player with 2 named "&2&LKLASA: &c&lH" with lore "&2&LDaje:||&2&L- 5 dodatkowych serc||&2&L- bijesz o 0.5 srca wiecej||&2&L- po zabiciu otrzymujesz 30$||&2&LKoszt: 10000 $||&2&LCzas : 3 dni" to close then run [execute player command "klasy kupuje 3"] if arg-1 is "kupuje": if arg-2 is 1: if player's balance >= 4000: add player to {zakupili::*} set {klasa::%player%} to "MAG" set {klasa::%player%::czas} to now broadcast " " broadcast "&2&lGracz &6&l%player% &2&lzakupił klase &5&lMAGA &2&lpod &6/klasy" broadcast " " remove 4000 from player's balance if arg-2 is 2: if player's balance >= 3000: add player to {zakupili::*} set {klasa::%player%} to "GORNIK" set {klasa::%player%::czas} to now broadcast " " broadcast "&2&lGracz &6&l%player% &2&lzakupił klase &8&lGORNIKA &2&lpod &6/klasy" broadcast " " remove 3000 from player's balance give player iron pickaxe give player iron sword give player iron axe give player 25 bread remove speed from player set player's max health to 10 if arg-2 is 4: if player's balance >= 10000: add player to {zakupili::*} set {klasa::%player%} to "TERMINATOR" set {klasa::%player%::czas} to now broadcast " " broadcast "&2&lGracz &6&l%player% &2&lzakupił klase &4&lTERMINATORA &2&lpod &6/klasy" broadcast " " remove 10000 from player's balance set player's max health to 15 remove speed from player if arg-2 is 3: if player's balance >= 4000: add player to {zakupili::*} set {klasa::%player%} to "VAMPIR" set {klasa::%player%::czas} to now broadcast " " broadcast "&2&lGracz &6&l%player% &2&lzakupił klase &5&lVAMPIRA &2&lpod &6/klasy" broadcast " " remove 4000 from player's balance if arg-2 is 5: if player's balance >= 10000: add player to {zakupili::*} set {klasa::%player%} to "H" set {klasa::%player%::czas} to now broadcast " " broadcast "&2&lGracz &6&l%player% &2&lzakupił klase &4&lH &2&lpod &6/klasy" broadcast " " remove 10000 from player's balance set player's max health to 15 remove speed from player on damage: if attacker is a player: if {klasa::%attacker%} is "TERMINATOR": set damage to damage+0.5 on break of stone: if {klasa::%player%} is "GORNIK": if {50hasju::%player%} is not set: set {50hasju::%player%} to 0 add 1 to {50hasju::%player%} if {50hasju::%player%} is 64: set {50hasju::%player%} to 0 add 50 to player's balance