Minecraft script] Why are all players assigned a kill when a player kills himself?

pi
1

I need help since I don't know how to solve the problem. I would like that if a player jumps down himself so that no other player is killed, that no player gets a kill what is currently happening. All players get a kill if someone jumps down

Here is the script:

on death of player:

add 1 to {tod.% player%}

if attacker isn't a player:

broadcast "{@p} & b% player% & 7 died"

else:

heal attacker

add 1 to {kill.% attacker%}

broadcast "{@p} & b% player% & 7 was killed by & b% attacker% & 7"

Ti

Who / what is then in the line after evaluation as% attacker%

broadcast "{@p} & b% player% & 7 was killed by & b% attacker% & 7"

And does this line come from everyone except the deceased player himself?

broadcast "{@p} & b% player% & 7 died"

Ergo: I'm just irritated by your "If / else" branch. Maybe you can describe in more detail when something is currently being spent.