How can I detect death by a certain item

I want to make a weapon that bans someone when I kill them, how would I do that
Continue to help post