Teraz sobie przypomniałem, że nazwę można zmienić w kowadle (XD)
command /wyplac [<text>]:
trigger:
set {_} to (arg-1 parsed as integer)
if {_} is not set:
send "&cPodaj liczbę! &7(/wyplac 10)"
stop
if player's balance < {_}:
send "&cNie masz tyle pieniedzy!"
stop
give 1 of sunflower named "Moneta" with lore "%{_}%" to player
remove {_} from player's balance
on rightclick with sunflower:
name of player's tool = "Moneta"
line 1 of lore of player's tool is set
set {_} to (line 1 of lore of player's tool) parsed as integer
set player's tool to (item amount of player's tool - 1) of player's tool
add {_} to player's balance