Add a little bit of difficulty when playing in hard mode by limiting the number of time players can respawn.
By default players have 5 lives. If they use them all they will be put in spectator mode
Also if you kill somone your number of hearth will be cut in half, until you die
Reset :
/function hard:reset
Add life to a player
/scoreboard player set @p lives <nb of life>