I am trying to detect when a player has quit the server, I have the scoreboard to detect when a player quits:
/scoreboard objectives add quit minecraft.custom:minecraft.leave_game
However, the rest of my command blocks only activate when the player re-joins the world. I am trying to set the player deaths to 3 when they quit:
scoreboard players set @a[scores={quit=1}] deaths 3
scoreboard players set @a[scores={quit=1}] quit 0
Is there any way to fix this?