execute @a[tag=OptionSurviveFor] ~ ~ ~ scoreboard players add @e[name=SurviveFor,type=armor_stand] Options 1
execute @a[tag=OptionSurviveFor] ~ ~ ~ execute @e[name=SurviveFor,score_Options_min=4] ~ ~ ~ scoreboard players set @s Options 0
execute @a[tag=OptionSurviveFor] ~ ~ ~ execute @e[name=SurviveFor,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ blockdata 8 102 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionSurviveFor\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Survive for:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"1min\",\"bold\":true,\"color\":\"dark_green\"}",Text4:"{\"text\":\"-==*O*==-\"}"}
execute @a[tag=OptionSurviveFor] ~ ~ ~ execute @e[name=SurviveFor,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ blockdata 500 102 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionSurviveFor\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Survive for:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"1min\",\"bold\":true,\"color\":\"dark_green\"}",Text4:"{\"text\":\"-==*O*==-\"}"}
execute @a[tag=OptionSurviveFor] ~ ~ ~ execute @e[name=SurviveFor,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ blockdata 8 102 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionSurviveFor\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Survive for:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"2min\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\"}"}
execute @a[tag=OptionSurviveFor] ~ ~ ~ execute @e[name=SurviveFor,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ blockdata 500 102 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionSurviveFor\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Survive for:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"2min\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\"}"}
execute @a[tag=OptionSurviveFor] ~ ~ ~ execute @e[name=SurviveFor,type=armor_stand,score_Options_min=2,score_Options=2] ~ ~ ~ blockdata 8 102 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionSurviveFor\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Survive for:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"3min\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\"}"}
execute @a[tag=OptionSurviveFor] ~ ~ ~ execute @e[name=SurviveFor,type=armor_stand,score_Options_min=2,score_Options=2] ~ ~ ~ blockdata 500 102 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionSurviveFor\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Survive for:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"3min\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\"}"}
execute @a[tag=OptionSurviveFor] ~ ~ ~ execute @e[name=SurviveFor,type=armor_stand,score_Options_min=3,score_Options=3] ~ ~ ~ blockdata 8 102 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionSurviveFor\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Survive for:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"5min\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\"}"}
execute @a[tag=OptionSurviveFor] ~ ~ ~ execute @e[name=SurviveFor,type=armor_stand,score_Options_min=3,score_Options=3] ~ ~ ~ blockdata 500 102 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionSurviveFor\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Survive for:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"5min\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\"}"}

title @a[tag=OptionSurviveFor] times 0 50 10
title @a[tag=OptionSurviveFor] title {"text":""}
execute @e[name=SurviveFor,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ title @a[tag=OptionSurviveFor] subtitle ["",{"text":"The game will last: ","color":"aqua"},{"text":"1 minute","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=SurviveFor,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ title @a[tag=OptionSurviveFor] subtitle ["",{"text":"The game will last: ","color":"aqua"},{"text":"2 minutes","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=SurviveFor,type=armor_stand,score_Options_min=2,score_Options=2] ~ ~ ~ title @a[tag=OptionSurviveFor] subtitle ["",{"text":"The game will last: ","color":"aqua"},{"text":"3 minutes","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=SurviveFor,type=armor_stand,score_Options_min=3,score_Options=3] ~ ~ ~ title @a[tag=OptionSurviveFor] subtitle ["",{"text":"The game will last: ","color":"aqua"},{"text":"5 minutes","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]

execute @a[tag=OptionSurviveFor] ~ ~ ~ playsound minecraft:ui.button.click master @s ~ ~ ~
scoreboard players tag @a[tag=OptionSurviveFor] remove OptionSurviveFor