Parent entity issue.



Hey guys anyone want to help me fix a stupid issue I am having?
basically I made a plugin that turns players into chickens in a sense, it makes the player invisible and sets movetype to none and then spawns a chicken at their feet and then parents the player to the chicken. However once I kill the chicken I want it to also kill the player, however it's just deleting the client entity once the chicken dies
any fix would be appreciated thanks.