on load: if folder "plugins/MrClass" doesn't exists: create folder "plugins/MrClass" if file "plugins/MrClass/Messages.yml" doesn't exists: create file "plugins/MrClass/Messages.yml" set yaml value "Klasy" from file "plugins/MrClass/Messages.yml" to "&cNie mozesz jeszcze uzyc tej komendy!" set yaml value "Wojownik" from file "plugins/MrClass/Messages.yml" to "&aZostales Wojownikiem!" set yaml value "Strzelec" from file "plugins/MrClass/Messages.yml" to "&aZostales Strzelcem!" set yaml value "Drwal" from file "plugins/MrClass/Messages.yml" to "&aZostales Drwalem!" set yaml value "Obrona" from file "plugins/MrClass/Messages.yml" to "&aUzyles umiejetnosci Obrona" set yaml value "ObronaCzas" from file "plugins/MrClass/Messages.yml" to "&cJeszcze musisz poczekac, aby uzyc Obrona" set yaml value "ZrzutStrzal" from file "plugins/MrClass/Messages.yml" to "&aUzyles umiejetnosci Zrzut Strzal" set yaml value "ZrzutStrzalCzas" from file "plugins/MrClass/Messages.yml" to "&cJeszcze musisz poczekac, aby uzyc Zrzut Strzal" set yaml value "NieKupilesKlasy" from file "plugins/MrClass/Messages.yml" to "&8>>> &cNie kupiles tej klasy!" set yaml value "BrakGotowki" from file "plugins/MrClass/Messages.yml" to "&8>>> &cNie posiadasz wystarczajacej gotowki!" set {Klasy} to yaml value "Klasy" from file "plugins/MrClass/Messages.yml" set {Wojownik} to yaml value "Wojownik" from file "plugins/MrClass/Messages.yml" set {Strzelec} to yaml value "Strzelec" from file "plugins/MrClass/Messages.yml" set {Drwal} to yaml value "Drwal" from file "plugins/MrClass/Messages.yml" set {Obrona} to yaml value "Obrona" from file "plugins/MrClass/Messages.yml" set {ObronaCzas} to yaml value "ObronaCzas" from file "plugins/MrClass/Messages.yml" set {ZrzutStrzal} to yaml value "ZrzutStrzal" from file "plugins/MrClass/Messages.yml" set {ZrzutStrzalCzas} to yaml value "ZrzutStrzalCzas" from file "plugins/MrClass/Messages.yml" set {NieKupilesKlasy} to yaml value "NieKupilesKlasy" from file "plugins/MrClass/Messages.yml" set {BrakGotowki} to yaml value "BrakGotowki" from file "plugins/MrClass/Messages.yml" options: Prefix: &4[&eMonety&4] variables: {monety.%player%} = 0 {kwojownik.%player%} = 0 {kstrzelec.%player%} = 0 {kdrwal.%player%} = 0 {drwal.%player%} = 0 {wojownik.%player%} = 0 {strzelec.%player%} = 0 {prestiz.%player%} = 0 {ulepszeniew.%player%} = 0 {ulepszenies.%player%} = 0 {ulepszenied.%player%} = 0 command /changelog: trigger: if sender has permission "use.changelog": send "&6-------&4[&eChangeLog&4]&6-------" send "&aWersja &c1.0:" send "&a- Publikacja skryptu" send "&aWersja &c2.0:" send "&a- Dodano sklep klas" send "&a- Dodano walute za ktora mozemy kupic klasy" send "&aWersja &c2.1:" send "&a- Dodano ChangeLog" send "&a- Dodano do komendy /klasy cooldown" send "&aWersja &c2.2:" send "&a- Poprawiono bugi z komendami" send "&aWersja &c2.5:" send "&a- Dodano system prestizu" send "&a- Zarabianie za zabijanie graczy" send "&a- Upgrade Shop" send "&aWersja &c2.6:" send "&a- Dodano komende /pomoc" send "&aWersja &c2.7:" send "&aPoprawki" send "&aWersja &c2.8:" send "&aDodano testowo niektóre wiadomości w plikach YML" send "&6-------&4[&eChangeLog&4]&6-------" command /klasy: trigger: set {czasklasy} to difference between {opoznienieklasy.%player%} and now if {czasklasy} is less than 15 seconds: send "&cNie mozesz jeszcze uzyc komendy!" else: open chest with 1 rows named "&a&lProfesje" to player format slot 0 of player with 1 of white glass pane named "" to be unstealable format slot 1 of player with 1 of white glass pane named "" to be unstealable format slot 2 of player with 1 of white glass pane named "" to be unstealable format slot 3 of player with 1 of stone sword named "&aWojownik" to run [make player execute "wojownik"] format slot 4 of player with 1 of bow named "&aStrzelec" to run [make player execute "strzelec"] format slot 5 of player with 1 of iron axe named "&aDrwal" to run [make player execute "drwal"] format slot 6 of player with 1 of white glass pane named "" to be unstealable format slot 7 of player with 1 of white glass pane named "" to be unstealable format slot 8 of player with 1 of white glass pane named "" to be unstealable set {opoznienieklasy.%player%} to now stop command /wojownik: trigger: if {kwojownik.%player%} is 1: send "%{Wojownik}%" execute console command "clear %player%" give 1 iron sword of unbreaking 2 and sharpness 2 named "&aMiecz Wojownika" to player give 1 ghast tear of unbreaking 5 named "&aObrona" to player give 1 iron helmet of unbreaking 2 and protection 2 named "&aHelm Wojownika" to player give 1 iron chestplate of unbreaking 2 and protection 2 named "&aZbroja Wojownika" to player give 1 iron leggings of unbreaking 2 and protection 2 named "&aNogawice Wojownika" to player give 1 iron boots of unbreaking 2 and protection 2 named "&aButy Wojownika" to player set {drwal.%player%} to 0 set {wojownik.%player%} to 1 set {strzelec.%player%} to 0 if {ulepszeniew.%player%} is 1: give 1 golden apple named "&6Zlote Jablko" with lore "&6Jablko dlugiego zywota" to player else: send "%{NieKupilesKlasy}%" stop on rightclick with ghast tear: if name of player's tool is "&aObrona": set {czasobrona} to difference between {opoznienieobrona.%player%} and now if {czasobrona} is less than 30 seconds: send "%{ObronaCzas}%" else: apply resistance 2 to the player for 5 seconds send "%{Obrona}%" set {opoznienieobrona.%player%} to now stop on respawn: if {wojownik.%player%} is 1: give 1 iron sword of unbreaking 2 and sharpness 2 named "&aMiecz Wojownika" to player give 1 ghast tear of unbreaking 5 named "&aObrona" to player give 1 iron helmet of unbreaking 2 and protection 2 named "&aHelm Wojownika" to player give 1 iron chestplate of unbreaking 2 and protection 2 named "&aZbroja Wojownika" to player give 1 iron leggings of unbreaking 2 and protection 2 named "&aNogawice Wojownika" to player give 1 iron boots of unbreaking 2 and protection 2 named "&aButy Wojownika" to player command /strzelec: trigger: if {kstrzelec.%player%} is 1: send "%{Strzelec}%" execute console command "clear %player%" give 1 bow of unbreaking 5 and power 3 named "&aLuk Strzelca" to player give 1 book of unbreaking 10 named "&aZrzut Strzal" to player give 32 arrow to player give 1 leather helmet of unbreaking 2 and protection 2 named "&aCzapka Strzelca" to player give 1 leather chestplate of unbreaking 2 and protection 2 named "&aKurtka Strzelca" to player give 1 leather leggings of unbreaking 2 and protection 2 named "&aSpodnie Strzelca" to player give 1 leather boots of unbreaking 2 and protection 2 named "&aButy Strzelca" to player set {drwal.%player%} to 0 set {wojownik.%player%} to 0 set {strzelec.%player%} to 1 else: send "%{NieKupilesKlasy}%" stop on rightclick with book: if name of player's tool is "&aZrzut Strzal": set {czasstrzaly} to difference between {opoznieniestrzaly.%player%} and now if {czasstrzaly} is less than 30 seconds: send "%{ZrzutStrzalCzas}%" else: give 32 arrow to player send "%{ZrzutStrzal}%" set {opoznieniestrzaly.%player%} to now stop on respawn: if {strzelec.%player%} is 1: give 1 bow of unbreaking 5 and power 3 named "&aLuk Strzelca" to player give 1 book of unbreaking 10 named "&aZrzut Strzal" to player give 32 arrow to player give 1 leather helmet of unbreaking 2 and protection 2 named "&aCzapka Strzelca" to player give 1 leather chestplate of unbreaking 2 and protection 2 named "&aKurtka Strzelca" to player give 1 leather leggings of unbreaking 2 and protection 2 named "&aSpodnie Strzelca" to player give 1 leather boots of unbreaking 2 and protection 2 named "&aButy Strzelca" to player command /drwal: trigger: if {kdrwal.%player%} is 1: send "%{Drwal}%" execute console command "clear %player%" give 1 iron axe of unbreaking 3 and sharpness 2 named "&aTopor Drwala" to player give 1 leather helmet of unbreaking 5 and protection 3 named "&aCzapka Drwala" to player give 1 iron chestplate of unbreaking 5 and protection 3 named "&aZbroja Drwala" to player give 1 iron leggings of unbreaking 5 and protection 3 named "&aNogawice Drwala" to player give 1 leather boots of unbreaking 5 and protection 3 named "&aButy Drwala" to player set {drwal.%player%} to 1 set {wojownik.%player%} to 0 set {strzelec.%player%} to 0 if {ulepszenied.%player%} is 1: give 1 stone axe of unbreaking 10 and knockback 3 named "&cTopor Lowcy" with lore "&cTopor uzywany do rzutu z dystansu!" to player else: send "%{NieKupilesKlasy}%" stop on rightclick: if name of player's tool contains "&cTopor Lowcy": set {czastopor} to difference between {opoznienietopor.%player%} and now if {czastopor} is less than 20 seconds: send "&8>>> &cNie mozesz rzucic Toporem, dopiero mozesz rzucic za &c%difference between 20 seconds and {czastopor}%" else: remove stone axe of unbreaking 10 and knockback 3 named "&cTopor Lowcy" with lore "&cTopor uzywany do rzutu z dystansu!" from player make the player shoot an item projectile of stone axe at speed 1.5 wait 2 seconds add 1 stone axe of unbreaking 10 and knockback 3 named "&cTopor Lowcy" with lore "&cTopor uzywany do rzutu z dystansu!" to player's inventory set {opoznienietopor.%player%} to now stop on item hit: event-item is a stone axe: loop all entities within 3 meters of event-location: damage loop-entity by 1 heart on respawn: if {drwal.%player%} is 1: give 1 iron axe of unbreaking 3 and sharpness 2 named "&aTopor Drwala" to player give 1 leather helmet of unbreaking 5 and protection 3 named "&aCzapka Drwala" to player give 1 iron chestplate of unbreaking 5 and protection 3 named "&aZbroja Drwala" to player give 1 iron leggings of unbreaking 5 and protection 3 named "&aNogawice Drwala" to player give 1 leather boots of unbreaking 5 and protection 3 named "&aButy Drwala" to player command /mrclassshop: trigger: open chest with 1 rows named "&c&lMrClass Shop" to player format slot 0 of player with 1 of white glass pane named "" to be unstealable format slot 1 of player with 1 of white glass pane named "" to be unstealable format slot 2 of player with 1 of white glass pane named "" to be unstealable format slot 3 of player with 1 of stone sword named "&aWojownik" to run [make player execute "kwojownik"] format slot 4 of player with 1 of bow named "&aLucznik" to run [make player execute "kstrzelec"] format slot 5 of player with 1 of iron axe named "&aDrwal" to run [make player execute "kdrwal"] format slot 6 of player with 1 of white glass pane named "" to be unstealable format slot 7 of player with 1 of white glass pane named "" to be unstealable format slot 8 of player with 1 of white glass pane named "" to be unstealable command /kdrwal: trigger: if {monety.%player%} is less than 700: send "%{BrakGotowki}%" stop else: add 1 to {kdrwal.%player%} send "&8>>> &6Zakupiles klase Drwal!" remove 700 from {monety.%player%} command /kstrzelec: trigger: if {monety.%player%} is less than 300: send "%{BrakGotowki}%" stop else: add 1 to {kstrzelec.%player%} send "&8>>> &6Zakupiles klase Strzelec!" remove 300 from {monety.%player%} command /kwojownik: trigger: if {monety.%player%} is less than 200: send "%{BrakGotowki}%" stop else: add 1 to {kwojownik.%player%} send "&8>>> &6Zakupiles klase Wojownik!" remove 200 from {monety.%player%} command /monety [] [] []: trigger: if arg 1 is not set: send "{@Prefix} &aTwoj obecny stan konta to %{monety.%player%}%$" if arg 1 is "give": if sender has permission "use.MrClass": if arg 2 is not set: send "{@Prefix} &aPoprawne uzycie /monety give/take [number] [player]" if arg 2 is set: if arg 3 is not set: send "{@Prefix} &aPoprawne uzycie /monety give/take [number] [player]" if arg 3 is "%player-arg%": add arg 2 to {monety.%player-arg%} else: send "{@Prefix} &aTakiego gracza nie ma na serwerze!" if arg 1 is "take": if sender has permission "use.MrClass": if arg 2 is not set: send "{@Prefix} &aPoprawne uzycie /monety give/take [number] [player]" if arg 2 is set: if arg 3 is not set: send "{@Prefix} &aPoprawne uzycie /monety give/take [number] [player]" if arg 3 is "%player-arg%": remove arg 2 from {monety.%player-arg%} send "{@Prefix} &aOdebrales temu graczu &c%arg 2%$ z konta" send "{@Prefix} &aZ twojego konta gracz &c%sender% &aodebral tobie &c%arg 2%$" else: send "{@Prefix} &aBrak uprawnien!" command /prestiz []: trigger: if arg is not set: send "&8>>> &6Aby zdobyc nastepny poziom prestizu" send "&8>>> &6musisz posiadac 10000$" send "&8>>> &6Jezeli tyle posiadasz wpisz /prestiz awans" if arg is "awans": if {monety.%player%} is less than 10000: send "&8>>> &6Niestety nie posiadasz wystarczajacej gotowki" send "&8>>> &6Wpisz /monety zeby sprawdzic swoj stan konta" stop else: add 1 to {prestiz.%player%} send "&8>>> &6Gratulacje! Awansowales na %{prestiz.%player%}% poziom prestizu!" send "&8>>> &6Gracz %player% awansowal na %{prestiz.%sender%}% poziom prestizu!" to players remove 10000 from {monety.%player%} on death of player: if victim is player: add 2 to {monety.%attacker%} send "&8>>> &6Zarobiles 2$ za zabicie gracza!" to attacker on chat: if {prestiz.%player%} is more than 0: set the player's display name to "&8&l(&d&l%{prestiz.%player%}%&8&l) &a%player%&8:" command /upgrade: trigger: give 1 nether star of unbreaking 10 named "&aUpgrade Shop" with lore "&aTutaj zakupisz ulepszenia do klas!" to player on rightclick with nether star: if name of player's tool is "&aUpgrade Shop": open chest with 1 rows named "&aUpgrade Shop" to player wait 0.2 seconds format slot 0 of player with 1 of white glass pane named "" to be unstealable format slot 1 of player with 1 of white glass pane named "" to be unstealable format slot 2 of player with 1 of white glass pane named "" to be unstealable format slot 3 of player with 1 of stone sword named "&aUpgrade - Wojownik" to close then run [make player execute "upgradew"] format slot 4 of player with 1 of bow named "&aUpgrade - Strzelec" to close then run [make player execute "upgrades"] format slot 5 of player with 1 of iron axe named "&aUpgrade - Drwal" to close then run [make player execute "upgraded"] format slot 6 of player with 1 of white glass pane named "" to be unstealable format slot 7 of player with 1 of white glass pane named "" to be unstealable format slot 8 of player with 1 of white glass pane named "" to be unstealable command /upgradew: trigger: if {monety.%player%} is less than 3000: send "&8>>> &6Nie stac Cie na zakup ulepszenia!" stop else: add 1 to {ulepszeniew.%player%} send "&8>>> &6Zakupiles ulepszenie!" remove 3000 from {monety.%player%} stop command /upgrades: trigger: if {monety.%player%} is less than 3500: send "&8>>> &6Nie stac Cie na zakup ulepszenia!" stop else: add 1 to {ulepszenies.%player%} send "&8>>> &6Zakupiles ulepszenie!" remove 3500 from {monety.%player%} stop command /upgraded: trigger: if {monety.%player%} is less than 7500: send "&8>>> &6Nie stac Cie na zakup ulepszenia!" stop else: add 1 to {ulepszenied.%player%} send "&8>>> &6Zakupiles ulepszenie!" remove 7500 from {monety.%player%} stop command /pomoc: trigger: send "&8>>> &6Pomoc" send "&8>>> &6Jak zarabiac?" send "&8>>> &aZarabiamy za zabijanie graczy, jeden kill = 2$" send "&8>>> &6Jak uzyc klasy?" send "&8>>> &aKomenda /klasy" send "&8>>> &6Jak kupic klasy?" send "&8>>> &aKomenda /mrclassshop" send "&8>>> &6Jak ulepszyc klase?" send "&8>>> &a/upgrade"