function main:disconnect/disconnectfunctions/mainduringlobby if @e[name=FunctionRunner,type=armor_stand,tag=LobbyOptions]
function main:disconnect/disconnectfunctions/mainduringlobby if @e[name=StartGame,score_StartInit=64,score_StartInit_min=1]

function main:disconnect/disconnectfunctions/mainduringgame if @e[name=StartGame,score_StartInit_min=65,score_StartInit=282]
function main:disconnect/disconnectfunctions/mainduringgame if @e[name=FunctionRunner,type=armor_stand,tag=InGame]
function main:disconnect/disconnectfunctions/mainduringgame if @e[name=Reset,type=area_effect_cloud,c=1]

function main:disconnect/disconnectfunctions/mainalways

scoreboard players reset @a[score_Disconnect_min=1] Disconnect