on join: set {waluta::czas::%player%} to 0 if {waluta::stan::%player%} is not set: set {waluta::stan::%player%} every 15 seconds: loop all players: add 1 to {waluta::czas::%loop-player%} if {waluta::czas::%loop-player%} >= 60: add 3 to {waluta::stan::%loop-player%} set {waluta::czas::%loop-player%} to 0 send "&aOtrzymales &f3x RedCoiny &aza 15 minut spedzone na serwerze!" to loop-player command sklep []: trigger: open chest inventory with 3 rows named "&c&lSklep RedCoin" loop 27 times: set slot (loop-number - 1) of player's current inventory to black stained glass pane named "&8" set slot 10 of player's current inventory to netherite pickaxe of unbreaking 100, efficiency 7 and fortune 4 named "&6Netherytowy Kilof" with lore "&7Cena: &c2000 RedCoinow" set slot 11 of player's current inventory to netherite chestplate of unbreaking 100, protection 8, fire protection 7 and thorns 6 named "&6Netherytowy Set" with lore "&7Cena: &c500 RedCoinow" set slot 12 of player's current inventory to netherite sword of sharpness 10, looting 4, fire aspect 8 and knockback 6 named "&6Netherytowy Miecz" with lore "&7Cena: &c700 RedCoinow" set slot 13 of player's current inventory to bow of power 10, infinity 1, flame 8 and punch 5 named "&6Luk" with lore "&7Cena: &c1000 RedCoinow" set slot 14 of player's current inventory to netherite axe of unbreaking 100, efficiency 7 and fortune 4 named "&6Netherytowa Siekiera" with lore "&7Cena: &c1500 RedCoinow" set slot 15 of player's current inventory to enchanted golden apple named "&6Kox" with lore "&7Cena: &c10 RedCoinow" set slot 16 of player's current inventory to 16 ender pearls named "&6Perla x16" with lore "&7Cena: &c5 RedCoinow" on inventory click: name of clicked inventory is "&c&lSklep RedCoin" cancel event if clicked slot is between 10 and 16: close player's inventory if clicked slot is 10: set {_price} to 2000 set {_item} to netherite pickaxe of unbreaking 100, efficiency 7 and fortune 4 if clicked slot is 11: set {_price} to 500 set {_item} to "set" if clicked slot is 12: set {_price} to 700 set {_item} to netherite sword of sharpness 10, looting 4, fire aspect 8 and knockback 6 if clicked slot is 13: set {_price} to 1000 set {_item} to bow of power 10, infinity 1, flame 8 and punch 5 if clicked slot is 14: set {_price} to 1500 set {_item} to netherite axe of unbreaking 100, efficiency 7 and fortune 4 if clicked slot is 15: set {_price} to 10 set {_item} to enchanted golden apple if clicked slot is 16: set {_price} to 5 set {_item} to 16 ender pearls if {waluta::stan::%player%} >= {_price}: remove {_price} from {waluta::stan::%player%} if {_item} is "set": if player has enough space for netherite helmet: add netherite helmet of unbreaking 100, protection 8, fire protection 7 and thorns 6 to player's inventory else: drop netherite helmet of unbreaking 100, protection 8, fire protection 7 and thorns 6 at player if player has enough space for netherite chestplate: add netherite chestplate of unbreaking 100, protection 8, fire protection 7 and thorns 6 to player's inventory else: drop netherite chestplate of unbreaking 100, protection 8, fire protection 7 and thorns 6 at player if player has enough space for netherite leggings: add netherite leggings of unbreaking 100, protection 8, fire protection 7 and thorns 6 to player's inventory else: drop netherite leggings of unbreaking 100, protection 8, fire protection 7 and thorns 6 at player if player has enough space for netherite boots: add netherite boots of unbreaking 100, protection 8, fire protection 7 and thorns 6 to player's inventory else: drop netherite boots of unbreaking 100, protection 8, fire protection 7 and thorns 6 at player else: if player has enough space for {_item}: add {_item} to player's inventory else: drop {_item} at player send "&aPomyslnie zakupiles &f%uncolored name of clicked item% &aza &f%{_price}% RedCoinow" else: send "&cAby to zakupic potrzebujesz &f%{_price}% RedCoinow"