scoreboard players set @e[name=SpecCounter,type=armor_stand] SpecInitReset 0
execute @a[tag=Spectator] ~ ~ ~ scoreboard players add @e[name=SpecCounter,type=armor_stand] SpecInitReset 1
scoreboard players set 1 SpecInitReset 2
scoreboard players operation @e[name=SpecCounter,type=armor_stand] SpecInitReset /= 1 SpecInitReset
scoreboard players add @e[name=SpecCounter,type=armor_stand] SpecInitReset 1
scoreboard players set @e[name=SpecClickCounter,type=armor_stand] SpecInitReset 0
scoreboard players reset 1 SpecInitReset
execute @e[name=SpecCounter,type=armor_stand,score_SpecInitReset=1] ~ ~ ~ tellraw @a[tag=Spectator] ["",{"text":"Freezun","color":"aqua","bold":"true"},{"text":" » ","color":"dark_gray"},{"text":"There are ","color":"aqua"},{"text":"only artificial players left","color":"dark_aqua"},{"text":".\nClick ","color":"aqua"},{"text":"[","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger SpecClickReset set 1"},"hoverEvent":{"action":"show_text","value":"Click"},"bold":true},{"text":"here","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/trigger SpecClickReset set 1"},"hoverEvent":{"action":"show_text","value":"Click"},"bold":true},{"text":"]","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger SpecClickReset set 1"},"hoverEvent":{"action":"show_text","value":"Click"},"bold":true},{"text":" if you want to ","color":"aqua"},{"text":"stop the game now","color":"dark_aqua"},{"text":". (","color":"aqua"},{"score":{"name":"@e[name=SpecCounter,type=armor_stand]","objective":"SpecInitReset"},"color":"dark_aqua"},{"text":" player need to click, at least)","color":"aqua"}]
execute @e[name=SpecCounter,type=armor_stand,score_SpecInitReset_min=2] ~ ~ ~ tellraw @a[tag=Spectator] ["",{"text":"Freezun","color":"aqua","bold":"true"},{"text":" » ","color":"dark_gray"},{"text":"There are ","color":"aqua"},{"text":"only artificial players left","color":"dark_aqua"},{"text":".\nClick ","color":"aqua"},{"text":"[","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger SpecClickReset set 1"},"hoverEvent":{"action":"show_text","value":"Click"},"bold":true},{"text":"here","color":"dark_aqua","clickEvent":{"action":"run_command","value":"/trigger SpecClickReset set 1"},"hoverEvent":{"action":"show_text","value":"Click"},"bold":true},{"text":"]","color":"aqua","clickEvent":{"action":"run_command","value":"/trigger SpecClickReset set 1"},"hoverEvent":{"action":"show_text","value":"Click"},"bold":true},{"text":" if you want to ","color":"aqua"},{"text":"stop the game now","color":"dark_aqua"},{"text":". (","color":"aqua"},{"score":{"name":"@e[name=SpecCounter,type=armor_stand]","objective":"SpecInitReset"},"color":"dark_aqua"},{"text":" players need to click, at least)","color":"aqua"}]