How to make custom death messages but if the weapon has a custom name like if its renamed in an anvil. this is my skript
on death of player:
if attacker is player: if attacker is holding tool:
if tool has custom name:
send "&7%victim% &6was killed by %attacker% &6using %weapon_name%" to all players
stop
on death of player:
if attacker is player: if attacker is holding tool:
if tool has custom name:
send "&7%victim% &6was killed by %attacker% &6using %weapon_name%" to all players
stop