I'm trying to create a skript that would give player items with a certain sword, but it doesn't work if the item is enchanted.
Code:
on death:
if victim is a player:
if attacker is a player:
if name of attacker's tool is "&fTokenSword":
broadcast "yes"