bossbar set minecraft:event players @a
execute if score .eventor eventtimer matches 1.. run bossbar set minecraft:event visible true
execute store result bossbar minecraft:event value run scoreboard players get .eventor eventtimer
execute if score .eventor eventcooldown matches ..0 run function ws:misc/eventor/set
execute if score .eventor eventtimer matches 0 run function ws:misc/eventor/end
scoreboard players remove .eventor eventcooldown 1
scoreboard players remove .eventor eventtimer 1