give a Item with a variable name
I want to give a player a item with custom name if they trigger a scoreboard. My Problem is, that the value the player set by triggering the scoreboard should be part of the name. Example: Player: /trigger pay 500 Result: The player gets a paper with the name "500$ from your Bank"
Is there a way to get the value the player set in the name or the lore of an Item? And if there is a way how can I do this? I would also take a other solution were I can see the Value somewhere in the item.