Custom Sword

I am making a custom sword for my server that inflicts poison when you hit someone. I have the texture, the crafting recipe, and some basic stuff for the poison(scoreboard and team), but it doesnt work

Continue to help post