tag @a[scores={join=100}] add validPlayer

scoreboard objectives remove join
scoreboard objectives add join minecraft.custom:minecraft.leave_game

scoreboard players set @a[tag=validPlayer] join 100
tag @a[tag=validPlayer] remove validPlayer

#periodically refresh aecs
function bd:refresh_area_effect_clouds