I made a pretty embarrassing mistake with the
/reviveall command, it basically adds the player to an alive variable, but after that it removed the player from the alive list when it was supposed to remove the player from the dead list. This issue has been fixed now!