title @s actionbar {"color":"yellow","text":"You feel rested","italic":true}
effect give @s minecraft:absorption 600 3 false
effect give @s minecraft:regeneration 6 2 true
title @a[nbt={SleepTimer:0s}] actionbar {"color":"gray","text":"Someone is waiting to sleep","italic":true}
advancement revoke @s only survivalplus:tools/tick/rested