Best way to change the attributes of players who are not currently on the server?

Currently my players have combat cooldown: attribute @s minecraft:attack_speed base set 1 But I want to give them all NO attack cooldown: attribute @s minecraft:attack_speed base set 2147483647 The issue is some of my players are offline right now. I assume there is no way to change the attributes of offline players, so is there a way for my datapack to detect when a player hasn't had this change applied and then apply it when the player logs back on? Or is there some easy way to run a command every time a player joins the server? (but ONLY when the player joins the server, not just periodically)
Continue to help post