If the gamerule playersSleepingPercentage
is set to 0, the night is skipped immediately when clicking on a bed. I'd expect a delay/animation similar to normal sleeping in singleplayer with the default gamerule value of 100.
To reproduce
Run
/gamerule playersSleepingPercentage 0
Click on a bed
→ ❌ The night is skipped immediately, no animation
Can confirm.