#Sets 0 score for new players
execute as @a unless score @s notify_wins matches 0.. run scoreboard players set @s notify_wins 0
execute as @a unless score @s notify_kills matches 0.. run scoreboard players set @s notify_kills 0

#Removes tag of notified
tag @a remove notified

execute as @a[tag=!notified] if entity @s[scores={statsWins=1,notify_wins=0}] run function subchronos:lobby/menu/notify/notify_win
execute as @a[tag=!notified] if entity @s[scores={statsWins=2,notify_wins=1}] run function subchronos:lobby/menu/notify/notify_win
execute as @a[tag=!notified] if entity @s[scores={statsWins=3..4,notify_wins=2}] run function subchronos:lobby/menu/notify/notify_win
execute as @a[tag=!notified] if entity @s[scores={statsWins=5..,notify_wins=3}] run function subchronos:lobby/menu/notify/notify_win

execute as @a[tag=!notified] if entity @s[scores={statsKills=1..4,notify_kills=0}] run function subchronos:lobby/menu/notify/notify_kill
execute as @a[tag=!notified] if entity @s[scores={statsKills=5..9,notify_kills=1}] run function subchronos:lobby/menu/notify/notify_kill
execute as @a[tag=!notified] if entity @s[scores={statsKills=10..14,notify_kills=2}] run function subchronos:lobby/menu/notify/notify_kill
execute as @a[tag=!notified] if entity @s[scores={statsKills=15..,notify_kills=3}] run function subchronos:lobby/menu/notify/notify_kill

#Removes tag of notified
tag @a remove notified