variables: {xp.%player%} = 0 {chest.pospolita.%player%} = 0 {chest.rzadka.%player%} = 0 {chest.epicka.%player%} = 0 {chest.mistyczna.%player%} = 0 {chest.legendarna.%player%} = 0 {chest.europejska.%player%} = 0 {key.pospolita.%player%} = 0 {key.rzadka.%player%} = 0 {key.epicka.%player%} = 0 {key.mistyczna.%player%} = 0 {key.legendarna.%player%} = 0 {key.europejska.%player%} = 0 on first join: set {xp.%player%} to 0 set {chest.pospolita.%player%} to 0 set {chest.rzadka.%player%} to 0 set {chest.epicka.%player%} to 0 set {chest.mistyczna.%player%} to 0 set {chest.legendarna.%player%} to 0 set {chest.europejska.%player%} to 0 set {key.pospolita.%player%} to 0 set {key.rzadka.%player%} to 0 set {key.epicka.%player%} to 0 set {key.mistyczna.%player%} to 0 set {key.legendarna.%player%} to 0 set {key.europejska.%player%} to 0 on rightclick on ender chest: cancel event open chest with 6 rows named " &f[&a&lMINECRAFT-FOREST&f]" to player wait 2 tick format slot 20 of player with 1 of chest named "&7&lSKRZYNIA POSPOLITA" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest m Skrzynia_Pospolita"] format slot 21 of player with 1 of chest named "&b&lSKRZYNIA RZADKA" with lore "&7Skrzynia: &e700xp||&7Klucz: &e300xp||&7Razem: &e1000xp" to close then run [execute player command "chest m Skrzynia_Rzadka"] format slot 22 of player with 1 of ender chest named "&a&lSKRZYNIA EPICKA" with lore "&7Skrzynia: &e900xp||&7Klucz: &e350xp||&7Razem: &e1250xp" to close then run [execute player command "chest m Skrzynia_Epicka"] format slot 23 of player with 1 of ender chest named "&e&lSKRZYNIA MISTYCZNA" with lore "&7Skrzynia: &e1100xp||&7Klucz: &e400xp||&7Razem: &e1500xp" to close then run [execute player command "chest m Skrzynia_Mistyczna"] format slot 24 of player with 1 of ender chest named "&5&lSKRZYNIA LEGENDARNA" with lore "&7Skrzynia: &e1300xp||&7Klucz: &e450xp||&7Razem: &e1750xp" to close then run [execute player command "chest m Skrzynia_Legendarna"] format slot 31 of player with 1 of ender chest named "&4&lSKRZYNIA EUROPEJSKA" with lore "&7Skrzynia: &e1500xp||&7Klucz: &e500xp||&7Razem: &e2000xp" to close then run [execute player command "chest m Skrzynia_Eurpejska"] command /xp [] [] []: permission: admin.xp permission message: &4Nie masz dostepu do tej komendy. trigger: arg 1 is not set: send "&f/xp check [Gracz]" send "&f/xp give [Gracz] [Ilosc]" send "&f/xp delete [Gracz] [Ilosc]" send "&f/xp set [Gracz] [Ilosc]" arg 1 is "check": arg 2 is not set: send "&cUzyj: /xp check [Gracz]" arg 2 is set: send "&fStan konta gracza &e%arg 2% &eto &e%{xp.%arg 2%}%xp&f." arg 1 is "give": arg 2 is not set: send "&cUzyj: /xp give [Gracz] [Ilosc]" arg 2 is set: arg 3 is not set: send "&cUzyj: /xp give [Gracz] [Ilosc]" arg 3 is set: send "&fDodano &e%arg 3%xp&f graczowi &e%arg 2%&f." add arg 3 to {xp.%arg 2%} arg 1 is "delete": arg 2 is not set: send "&cUzyj: /xp delete [Gracz] [Ilosc]" arg 2 is set: arg 3 is not set: send "&cUzyj: /xp delete [Gracz] [Ilosc]" arg 3 is set: send "&fOdjeto &e%arg 3%xp&f graczowi &e%arg 2%&f." remove arg 3 from {xp.%arg 2%} arg 1 is "set": arg 2 is not set: send "&cUzyj: /xp set [Gracz] [Ilosc]" arg 2 is set: arg 3 is not set: send "&cUzyj: /xp set [Gracz] [Ilosc]" arg 3 is set: send "&fStan konta &e%arg 2%&f zmieniono na &e%arg 3%xp&f." set {xp.%arg 2%} to arg 3 command /chest [] [] []: trigger: arg 1 is "buy": arg 2 is "Chest": arg 3 is "Skrzynia_Pospolita": if {xp.%player%} is smaller than 250: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 250: send "&aPomyslnie zakupiono &7&lSKRZYNIA POSPOLITA&a!" add 1 to {chest.pospolita.%player%} arg 3 is "Skrzynia_Rzadka": if {xp.%player%} is smaller than 300: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 300: send "&aPomyslnie zakupiono &b&lSKRZYNIA RZADKA&a!" add 1 to {chest.rzadka.%player%} arg 3 is "Skrzynia_Epicka": if {xp.%player%} is smaller than 350: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 350: send "&aPomyslnie zakupiono &7&lSKRZYNIA POSPOLITA&a!" add 1 to {chest.epicka.%player%} arg 3 is "Skrzynia_Mistyczna": if {xp.%player%} is smaller than 400: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 400: send "&aPomyslnie zakupiono &7&lSKRZYNIA POSPOLITA&a!" add 1 to {chest.mistyczna.%player%} arg 3 is "Skrzynia_Legendarna": if {xp.%player%} is smaller than 450: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 450: send "&aPomyslnie zakupiono &7&lSKRZYNIA POSPOLITA&a!" add 1 to {chest.legendarna.%player%} arg 3 is "Skrzynia_Europejska": if {xp.%player%} is smaller than 500: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 500: send "&aPomyslnie zakupiono &7&lSKRZYNIA POSPOLITA&a!" add 1 to {chest.europejska.%player%} arg 2 is "Key": arg 3 is "Skrzynia_Pospolita": if {xp.%player%} is smaller than 500: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 500: send "&aPomyslnie zakupiono klucz do &7&lSKRZYNIA POSPOLITA&a!" add 1 to {key.pospolita.%player%} arg 3 is "Skrzynia_Rzadka": if {xp.%player%} is smaller than 700: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 700: send "&aPomyslnie zakupiono klucz do &b&lSKRZYNIA RZADKA&a!" add 1 to {key.rzadka.%player%} arg 3 is "Skrzynia_Epicka": if {xp.%player%} is smaller than 900: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 900: send "&aPomyslnie zakupiono klucz do &7&lSKRZYNIA POSPOLITA&a!" add 1 to {key.epicka.%player%} arg 3 is "Skrzynia_Mistyczna": if {xp.%player%} is smaller than 1100: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 1100: send "&aPomyslnie zakupiono klucz do &7&lSKRZYNIA POSPOLITA&a!" add 1 to {key.mistyczna.%player%} arg 3 is "Skrzynia_Legendarna": if {xp.%player%} is smaller than 1300: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 1300: send "&aPomyslnie zakupiono klucz do &7&lSKRZYNIA POSPOLITA&a!" add 1 to {key.legendarna.%player%} arg 3 is "Skrzynia_Europejska": if {xp.%player%} is smaller than 1500: send "&cMasz za malo XP!" if {xp.%player%} isn't smaller than 1500: send "&aPomyslnie zakupiono klucz do &7&lSKRZYNIA POSPOLITA&a!" add 1 to {key.europejska.%player%} arg 1 is "enderchest": wait 2 tick open chest with 6 rows named " &f[&a&lMINECRAFT-FOREST&f]" to player wait 2 tick format slot 20 of player with 1 of chest named "&7&lSKRZYNIA POSPOLITA" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest m Skrzynia_Pospolita"] format slot 21 of player with 1 of chest named "&b&lSKRZYNIA RZADKA" with lore "&7Skrzynia: &e700xp||&7Klucz: &e300xp||&7Razem: &e1000xp" to close then run [execute player command "chest m Skrzynia_Rzadka"] format slot 22 of player with 1 of ender chest named "&a&lSKRZYNIA EPICKA" with lore "&7Skrzynia: &e900xp||&7Klucz: &e350xp||&7Razem: &e1250xp" to close then run [execute player command "chest m Skrzynia_Epicka"] format slot 23 of player with 1 of ender chest named "&e&lSKRZYNIA MISTYCZNA" with lore "&7Skrzynia: &e1100xp||&7Klucz: &e400xp||&7Razem: &e1500xp" to close then run [execute player command "chest m Skrzynia_Mistyczna"] format slot 24 of player with 1 of ender chest named "&5&lSKRZYNIA LEGENDARNA" with lore "&7Skrzynia: &e1300xp||&7Klucz: &e450xp||&7Razem: &e1750xp" to close then run [execute player command "chest m Skrzynia_Legendarna"] format slot 31 of player with 1 of ender chest named "&4&lSKRZYNIA EUROPEJSKA" with lore "&7Skrzynia: &e1500xp||&7Klucz: &e500xp||&7Razem: &e2000xp" to close then run [execute player command "chest m Skrzynia_Eurpejska"] arg 1 is "m": arg 2 is "Skrzynia_Pospolita": wait 2 tick open chest with 3 rows named " &f[&a&lMINECRAFT-FOREST&f]" to player wait 2 tick format slot 10 of player with 1 of chest named "&7&lSKRZYNIA POSPOLITA" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Chest Skrzynia_Pospolita"] format slot 22 of player with 1 of barrier named "&c&lPowrot" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest enderchest"] format slot 16 of player with 1 of tripwire hook named "&7&lKLUCZ" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Key Skrzynia_Pospolita"] arg 2 is "Skrzynia_Rzadka": wait 2 tick open chest with 3 rows named " &f[&a&lMINECRAFT-FOREST&f]" to player wait 2 tick format slot 10 of player with 1 of chest named "&b&lSKRZYNIA RZADKA" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Chest Skrzynia_Rzadka"] format slot 22 of player with 1 of barrier named "&c&lPowrot" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest enderchest"] format slot 16 of player with 1 of tripwire hook named "&b&lKLUCZ" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Key Skrzynia_Rzadka"] arg 2 is "Skrzynia_Epicka": wait 2 tick open chest with 3 rows named " &f[&a&lMINECRAFT-FOREST&f]" to player wait 2 tick format slot 10 of player with 1 of chest named "&a&lSKRZYNIA EPICKA" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Chest Skrzynia_Epicka"] format slot 22 of player with 1 of barrier named "&c&lPowrot" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest enderchest"] format slot 16 of player with 1 of tripwire hook named "&a&lKLUCZ" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Key Skrzynia_Epicka"] arg 2 is "Skrzynia_Mistyczna": wait 2 tick open chest with 3 rows named " &f[&a&lMINECRAFT-FOREST&f]" to player wait 2 tick format slot 10 of player with 1 of chest named "&e&lSKRZYNIA MISTYCZNA" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Chest Skrzynia_Mistyczna"] format slot 22 of player with 1 of barrier named "&c&lPowrot" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest enderchest"] format slot 16 of player with 1 of tripwire hook named "&e&lKLUCZ" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Key Skrzynia_Mistyczna"] arg 2 is "Skrzynia_Legendarna": wait 2 tick open chest with 3 rows named " &f[&a&lMINECRAFT-FOREST&f]" to player wait 2 tick format slot 10 of player with 1 of chest named "&5&lSKRZYNIA LEGENDARNA" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Chest Skrzynia_Legendarna"] format slot 22 of player with 1 of barrier named "&c&lPowrot" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest enderchest"] format slot 16 of player with 1 of tripwire hook named "&5&lKLUCZ" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Key Skrzynia_Legendarna"] arg 2 is "Skrzynia_Europejska": wait 2 tick open chest with 3 rows named " &f[&a&lMINECRAFT-FOREST&f]" to player wait 2 tick format slot 10 of player with 1 of chest named "&4&lSKRZYNIA EUROPEJSKA" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Chest Skrzynia_Europejska"] format slot 22 of player with 1 of barrier named "&c&lPowrot" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest enderchest"] format slot 16 of player with 1 of tripwire hook named "&4&lKLUCZ" with lore "&7Skrzynia: &e500xp||&7Klucz: &e250xp||&7Razem: &e750xp" to close then run [execute player command "chest buy Key Skrzynia_Europejska"]