command /bank []: trigger: if {bank::monety::%player%} isn't set: set {bank::monety::%player%} to 0 open chest with 1 row named "&6&lBANK" to player wait 2 tick set player's current inventory's slot 0 to 266 named "&6&lWPLAC" with lore "||&7Kliknij, aby przejsc||&7do menu &6&lWPLACANIA||" set player's current inventory's slot 8 to 266 named "&6&lWYPLAC" with lore "||&7Kliknij, aby przejsc||&7do menu &6&lWYPLACANIA||" set player's current inventory's slot 4 to diamond named "&6&lTWOJ STAN KONTA" with lore "||&7Twoj stan konta to:||&7W banku masz: &6%{bank::monety::%player%}%||&7Normalnych masz: &6%player's balance%||" open chest with 1 row named "&6&lBANK" to player wait 2 tick set player's current inventory's slot 0 to 266 named "&6&lWPLAC" with lore "||&7Kliknij, aby przejsc||&7do menu &6&lWPLACANIA||" set player's current inventory's slot 8 to 266 named "&6&lWYPLAC" with lore "||&7Kliknij, aby przejsc||&7do menu &6&lWYPLACANIA||" set player's current inventory's slot 4 to diamond named "&6&lTWOJ STAN KONTA" with lore "||&7Twoj stan konta to:||&7W banku masz: &6%{bank::monety::%player%}%||&7Normalnych masz: &6%player's balance%||" on inventory click: if inventory name of current inventory of player is "&6&lBANK": if clicked slot is 8: cancel event close player's inventory set {bank::czas::wpisania::wyplac::%player%} to true send "&aNapisz na chacie ile chcesz wyplacic &fmonet&a." to the player stop if clicked slot is 0: cancel event close player's inventory set {bank::czas::wpisania::wplac::%player%} to true send "&aNapisz na chacie ile chcesz wplacic &fmonet&a." to the player stop if clicked slot is 4: cancel event on chat: if {bank::czas::wpisania::wyplac::%player%} is true: cancel event set {_wyplacenie} to message parsed as number if {bank::monety::%player%} is greater or equal to {_wyplacenie}: remove {_wyplacenie} from {bank::monety::%player%} add {_wyplacenie} to player's balance send "&aPoprawnie wyplaciles: &6%{_wyplacenie}% &az banku!" to the player set {bank::czas::wpisania::wyplac::%player%} to false stop else: send "&cNie masz tyle pieniedzy w banku." to the player set {bank::czas::wpisania::wyplac::%player%} to false stop on chat: if {bank::czas::wpisania::wplac::%player%} is true: cancel event set {_wplacenie} to message parsed as number if player's balance is greater or equal to {_wplacenie}: remove {_wplacenie} from player's balance add {_wplacenie} to {bank::monety::%player%} send "&aPoprawnie wplaciles: &6%{_wyplacenie}% &ado banku!" to the player set {bank::czas::wpisania::wplac::%player%} to false else: send "&cNie posiadasz tyle pieniedzy." to the player set {bank::czas::wpisania::wplac::%player%} to false stop