on chat:
if message is "[esyagoster]":
if player's tool is not air:
if name of player's tool is set:
replace all "[esyagoster]" with "&f[%amount of player's tool%x %name of player's tool%&f]" in message
else:
replace all "[esyagoster]" with "&f[%amount of player's tool%x &a%material of player's tool%&f]" in message