options:
diamond: diamond helmet, diamond leggings, diamond boots, diamond chestplate, diamond pickaxe or diamond sword
on right click on anvil:
cancel event
if player's tool is {@diamond}:
if player have 3 diamonds:
if damage of player's tool > 0:
remove 3 diamonds from player
repair tool of player
send title "&6&lNaprawa" with subtitle "&aNaprawiłeś przedmiot!"
if player don't have 3 diamonds:
send "&cNie posiadasz trzech diamentów!"
stop
else:
send "&cTego przedmiotu nie możesz naprawić"
stop