variables: {kasa.%player%} = 0 command /permisje: trigger: open chest with 1 rows named "&6MENU PERMISJII" to player wait 3 ticks format slot 0 of player with 1 of light green wool named "&a&lKUPNO PERMISJII" with lore "&5&lJesli chcesz kupic itemy||&5&lNacisnij na ten przedmiot!" to run [make player execute "kuppermisje"] format slot 1 of player with 1 of red wool named "&c&lKUPNO KASY" with lore "&5&lJesli chcesz sprzedac itemy i zyskac pieniadze||&5&lNacisnij na ten przedmiot!" to run [make player execute "sprzedajpermisje"] format slot 2 of player with 1 of paper named "&6&lLISTA PERMISJII" with lore "&5Lista permisjii do kupienia" to run [make player execute "listpermisje"] format slot 8 of player with 1 of 371 named "&6&lKASA" with lore "&5&lMasz: &6&l%{coins.%player%}%" to be unstealable command /listpermisje: trigger: open chest with 2 rows named "&6&lLISTA PERMISJAM" to player wait 3 ticks format slot 0 of player with 1 of red wool named "&6PERMISJA: Latanie" with lore "&4NIEODBLOKOWANE||&7Kup za 64 diamenty" to close then run [make player execute "psklep1 "] if player has permissions "essentials.fly": format slot 0 of player with 1 of light green wool named "&6PERMISJA: Latanie" with lore "&2ODBLOKOWANE" to close format slot 1 of player with 1 of red wool named "&6PERMISJA: Pisanie na kolorowo" with lore "&4NIEODBLOKOWANE||&7Kup za 64 diamenty" to close then run [make player execute "psklep 2"] if player has permissions "essentials.chat.color": format slot 1 of player with 1 of light green wool named "&6PERMISJA: Pisanie na kolorowo" with lore "&2ODBLOKOWANE" to close format slot 2 of player with 1 of red wool named "&6PERMISJA: Naprawianie Itemow" with lore "&4NIEODBLOKOWANE||&7Kup za 64 diamenty" to close then run [make player execute "psklep 3"] if player has permissions "essentials.repair": format slot 2 of player with 1 of light green wool named "&6PERMISJA: Naprawianie Itemow" with lore "&2ODBLOKOWANE" to close format slot 3 of player with 1 of red wool named "&6PERMISJA: Zmiana pory dnia na dzien" with lore "&4NIEODBLOKOWANE||&7Kup za 64 diamenty" to close then run [make player execute "psklep 4"] if player has permissions "essentials.day": format slot 3 of player with 1 of light green wool named "&6PERMISJA: Zmiana pory dnia na noc" with lore "&2ODBLOKOWANE" to close format slot 4 of player with 1 of red wool named "&6PERMISJA: Zmiana pory dnia na dzien" with lore "&4NIEODBLOKOWANE||&7Kup za 64 diamenty" to close then run [make player execute "psklep 5"] if player has permissions "essentials.night": format slot 4 of player with 1 of light green wool named "&6PERMISJA: Zmiana pory dnia na noc" with lore "&2ODBLOKOWANE" to close format slot 17 of player with 1 of 137 named "&6NAPISANE PRZEZ: Untub3r" with lore "&7IP : &6Cake&eSV.PL" to close command /psklep1: trigger: if player don't have 64 diamond block: send "&4&lNIE MASZ 64 DIAMENTOWYCH BLOKOW!" stop else: remove 64 diamond block from player execute console command "pex user %player% add essentials.fly" send "&2GRATULACJE ZAKUPILES &6PERMISJA: Latanie" stop command /psklep2: trigger: if player don't have 64 diamond block: send "&4&lNIE MASZ 64 DIAMENTOWYCH BLOKOW!" stop else: remove 64 diamond block from player execute console command "pex user %player% add essentials.chat.color" send "&2GRATULACJE ZAKUPILES &6PERMISJA: Pisanie na kolorowo" stop command /psklep3: trigger: if player don't have 64 diamond block: send "&4&lNIE MASZ 64 DIAMENTOWYCH BLOKOW!" stop else: remove 64 diamond block from player execute console command "pex user %player% add essentials.repair" send "&2GRATULACJE ZAKUPILES &6PERMISJA: Naprawianie Itemow" stop command /ksklep []: trigger: if arg-1 is "latanie": if {kasa.%player%} is less than 5.99: send "&4Nie masz tyle kasy! Musisz jej miec 5.99" command /sprzedajpermisje: trigger: open chest with 1 rows named "&4SPRZEDAJ" to player wait 3 ticks format slot 0 of player with 1 of diamond named "&6SPRZEDAJ: 64 Diamentow" with lore "&4&l0.04 Kasy" to close then run [make player execute "stragan sdiament"] format slot 1 of player with 1 of emerald named "&6SPRZEDAJ: 64 Emeraldow" with lore "&4&l0.03 Kasy" to close then run [make player execute "stragan semerald"] format slot 2 of player with 1 of 266 named "&6SPRZEDAJ: 64 Zlota" with lore "&4&l0.05 Kasy" to close then run [make player execute "stragan szloto"] command /stragan []: trigger: if arg-1 is "sdiament": if player don't have 64 diamond: send "&2&l&nNIE POSIADASZ 64 DIAMENTY!" stop else: remove 64 diamond from player add 0.04 to {kasa.%player%} send "&a&lGRATULACJE SPRZEDALES 64 DIAMENTY" send "&aDo banku wplynelo 0.04 Kasy" stop if arg-1 is "semerald": if player don't have 64 emerald: send "&2&l&nNIE POSIADASZ 64 EMERALDY!" stop else: remove 64 emerald from player add 0.04 to {kasa.%player%} send "&a&lGRATULACJE SPRZEDALES 64 EMERALDY" send "&aDo banku wplynelo 0.03 Kasy" stop if arg-1 is "szloto": if player don't have 64 266: send "&2&l&nNIE POSIADASZ 64 ZLOTA!" stop else: remove 64 266 from player add 0.05 to {kasa.%player%} send "&a&lGRATULACJE SPRZEDALES 64 ZLOTA" send "&aDo banku wplynelo 0.05 Kasy" stop command /kuppermisje: trigger: open chest with 1 rows named "&2KUP" to player wait 3 ticks format slot 0 of player with 1 of red wool named "&6PERMISJA: Latanie" with lore "&7Kup za 5.99 kasy" to close then run [make player execute "psklep1 "] if player has permissions "essentials.fly": format slot 0 of player with 1 of light green wool named "&6PERMISJA: Latanie" with lore "&2ODBLOKOWANE" to close format slot 1 of player with 1 of red wool named "&6PERMISJA: Pisanie na kolorowo" with lore "&7Kup za 5.99 kasy" to close then run [make player execute "psklep 2"] if player has permissions "essentials.chat.color": format slot 1 of player with 1 of light green wool named "&6PERMISJA: Pisanie na kolorowo" with lore "&2ODBLOKOWANE" to close format slot 2 of player with 1 of red wool named "&6PERMISJA: Naprawianie Itemow" with lore "&7Kup za 5.99 kasy" to close then run [make player execute "psklep 3"] if player has permissions "essentials.repair": format slot 2 of player with 1 of light green wool named "&6PERMISJA: Naprawianie Itemow" with lore "&2ODBLOKOWANE" to close format slot 3 of player with 1 of red wool named "&6PERMISJA: Zmiana pory dnia na dzien" with lore "&7Kup za 5.99 kasy" to close then run [make player execute "psklep 4"] if player has permissions "essentials.day": format slot 3 of player with 1 of light green wool named "&6PERMISJA: Zmiana pory dnia na dzien" with lore "&2ODBLOKOWANE" to close format slot 4 of player with 1 of red wool named "&6PERMISJA: Zmiana pory dnia na noc" with lore "&7Kup za 5.99 kasy" to close then run [make player execute "psklep 5"] if player has permissions "essentials.night": format slot 4 of player with 1 of light green wool named "&6PERMISJA: Zmiana pory dnia na noc" with lore "&2ODBLOKOWANE" to close command /psklep []: trigger: if arg-1 is "1": if {kasa.%player%} is less than 5.99: send "&4Nie masz wystarczajaco kasy... Brakuje ci &c5.99 Kasy" to player stop else: execute console command "pex user %player% add essentials.fly" remove 5.99 from {kasa.%player%} send "&a&lGRATULACJE ZAKUPILES LATANIE" send "&4&lZ TWOJEGO KONTA ODJETO &c&l5.99 Kasy" stop if arg-1 is "2": if {kasa.%player%} is less than 5.99: send "&4Nie masz wystarczajaco kasy... Brakuje ci &c5.99 Kasy" to player stop else: execute console command "pex user %player% add essentials.chat.color" remove 5.99 from {kasa.%player%} send "&a&lGRATULACJE ZAKUPILES KOLOROWE PISANIE" send "&4&lZ TWOJEGO KONTA ODJETO &c&l5.99 Kasy" stop if arg-1 is "3": if {kasa.%player%} is less than 5.99: send "&4Nie masz wystarczajaco kasy... Brakuje ci &c5.99 Kasy" to player stop else: execute console command "pex user %player% add essentials.repair" remove 5.99 from {kasa.%player%} send "&a&lGRATULACJE ZAKUPILES NAPRAWE" send "&4&lZ TWOJEGO KONTA ODJETO &c&l5.99 Kasy" stop if arg-1 is "4": if {kasa.%player%} is less than 5.99: send "&4Nie masz wystarczajaco kasy... Brakuje ci &c5.99 Kasy" to player stop else: execute console command "pex user %player% add essentials.day" remove 5.99 from {kasa.%player%} send "&a&lGRATULACJE ZAKUPILES PERMISJE ZMIENIANIA NA DZIEN" send "&4&lZ TWOJEGO KONTA ODJETO &c&l5.99 Kasy" stop if arg-1 is "5": if {kasa.%player%} is less than 5.99: send "&4Nie masz wystarczajaco kasy... Brakuje ci &c5.99 Kasy" to player stop else: execute console command "pex user %player% add essentials.night" remove 5.99 from {kasa.%player%} send "&a&lGRATULACJE ZAKUPILES PERMISJE ZMIENIANIA NA NOC" send "&4&lZ TWOJEGO KONTA ODJETO &c&l5.99 Kasy" stop