Minecraft Vanilla Team Logic

So I have a Purpur server, and I need to know if it's possible to do the following:

When a player dies on Alive team:
  • /team leave <player>
  • /team join Dead <player>
When a player dies on Playing team:
They respawn at playing team spawnpoint.

This would be using Minecraft's team system. And I can add in any plugins if needed.
Was this page helpful?