command /zmiana []: trigger: if target block is Monster Spawner: if arg 1 is not set: wait 5 ticks open virtual chest with 1 rows named "&6&lSPAWNERY" to player format gui slot 8 times of player with Lime Stained Glass Pane named " " format gui slot 0 of player with Lime Stained Glass Pane named " " format gui slot 4 of player with Spawn Cow named "&5&lKrowa" to close then run player command "/zmiana krowa" format gui slot 7 of player with Spawn Pig named "&5&lSwinia" to close then run player command "/zmiana swinia" if arg 1 is "krowa": if player has permission "spawner.krowa": if player's balance >= 1000: execute player command "spawner cow" remove 1000 from player's balance send "&9Pomyslnie zmieniono spawner" else: send "Nie masz tyle $$" else: send "&cBrak uprawnieĊ„" if arg 1 is "swinia": if player has permission "spawner.krowa": if player's balance >= 1000: execute player command "spawner pig" remove 1000 from player's balance send "&9Pomyslnie zmieniono spawner" else: send "Nie masz tyle $$" else: send "&cBrak uprawnieĊ„" else: send "&6&lTo nie jest spawner"