I am trying to make command blocks kick me when I die on a multiplayer server I own, running 1.17.1, I have been trying to figure this out for an hour now and still have not gotten this to work.
before posting this question I have tried adding myself to a team then checking if that team has died using execute at @a[team=ryan,scores={deaths=1..}]
in a repeat command block.
I then had that command block run into a chain command block containing the command scoreboard players reset @a[team=ryan,scores={deaths=0..}] deaths
using this to reset the deathCount score back to 0.
This command then ran into a impulse command block containing kick (playername)
I will put some images of the command blocks in case I have a typo and to give a better understanding of what I am doing.