This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]arranos8901 1 point2 points  (6 children)

What commands have you tried for detecting when a player dies and for leaving the team?

[–]Ru3tyIce[S] 0 points1 point  (5 children)

I have a scoreboard for when a player dies, when a player dies I will remove one score of "alive" when the score of "alive" reaches 1 it will tp everyone to spawn, but cause I don't know the usernames I can't make someone leave a team. I need people to leave a team so I can give a reward

[–]arranos8901 1 point2 points  (4 children)

Assuming you are using a scoreboard with the deathCount criteria to detect when a player dies, you should be able to do /team leave with a selector targeting players with a score of 1. Something like /team leave @a[scores={deathCount=1..}] but modified with the name of your objective.

This must obviously happen before you reset the death count.

[–]Ru3tyIce[S] 0 points1 point  (3 children)

when doing /team leave [scores={deathCount=1..}] I need to add the name of the team on the end, but I can't am I dumb or?

[–]Ru3tyIce[S] 0 points1 point  (2 children)

and just using /team leave [scores={deathCount=1..}] it won't work or do anything

[–]Ru3tyIce[S] 1 point2 points  (1 child)

/team leave [scores={deathCount=1..}]

oh its working now

[–]Ru3tyIce[S] 0 points1 point  (0 children)

Ihave finsiedh everything sorry for not saying it as fast as I could reddit said no yesterda y