function kantor(p: player): if tool of {_p} is Gold Ingot named "&e&lMoneta": remove 1 of Gold Ingot named "&e&lMoneta" from {_p} wait 2 tick add 1 to {_p}'s balance else: send "Nie masz monety" to {_p} command /kantor []: trigger: open virtual chest inventory with 1 row named "&a&lKantor" to player make gui slot 4 of player with stone to run function kantor(player)