command /atm []: aliases: bankomat trigger: if player has permission "atm.konto": if arg 1 is "%{pinatm::%player%}%": close player's inventory open chest with 1 row named "&2A&aT&2M &bZarzadzanie" to player wait 1 tick set player's current inventory's slot 1 to red wool named "&8» &6Wyplac" with lore "&8» &6Otwiera okienko wyplacania pieniedzy z konta." set player's current inventory's slot 2 to green wool named "&8» &6Wplac" with lore "&8» &6Otwiera okienko wplacania pieniedzy do konta." set player's current inventory's slot 3 to wool named "&8» &6Przelej pieniadze na konto kogos innego." with lore "&8» &6Podaje poprawne uzytkowanie przelania pieniedzy na inne konto w wiadomosci." set player's current inventory's slot 5 to book named "&8» &aStan konta bankowego: &2%{atm::stan}%" with lore "&8» &6Obecny stan konta bankowego." set player's current inventory's slot 6 to book named "&8» &aStan portfela: &2%balance of player%" with lore "&8» &6Obecny stan portfela." if arg 1 is not set: send "&8» &6Poprawne uzycie konta: &c/atm " send "&8» &6Poprawne zalozenie konta: &c/atm zaloz" if arg 1 is "zaloz": close player's inventory open chest with 1 row named "&2A&aT&2M &bZakladanie" to player wait 1 tick set player's current inventory's slot 1 to book named "&8» &6Wybierz pin" with lore "&8» &6Otwiera okienko z wyborem pinu." set player's current inventory's slot 2 to book named "&8» &6Konfiguracja &8(Domyslne przed wybieraniem pinu!)" with lore "&8» &6Otwiera okienko z konfiguracja." on inventory click: if inventory name of current inventory of player is "&2A&aT&2M &bZarzadzanie": if clicked slot is 1: close player's inventory open chest with 1 row named "&2A&aT&2M &bWyplac" wait 1 tick set player's current inventory's slot 1 to book named "&8» &6Wyplac &a5$" set player's current inventory's slot 2 to book named "&8» &6Wyplac &a10$" set player's current inventory's slot 3 to book named "&8» &6Wyplac &a50$" set player's current inventory's slot 4 to book named "&8» &6Wyplac &a100$" set player's current inventory's slot 5 to book named "&8» &6Wyplac &a200$" set player's current inventory's slot 6 to book named "&8» &6Wyplac &a500$" set player's current inventory's slot 7 to book named "&8» &6Wyplac &a1000$" set player's current inventory's slot 8 to book named "&8» &6Wyplac &a2000$" set player's current inventory's slot 9 to book named "&8» &6Wyplac &a5000$" set player's current inventory's slot 10 to book named "&8» &6Wyplac &a10000$" set player's current inventory's slot 12 to book named "&8» &6Wyplac &aWszystko" set player's current inventory's slot 13 to book named "&8» &6Stan konta: %{atm::stan}%"