This video will show you how to build a contraption that lets 1 player sleep in a bed and change the time to daytime even if other players are not sleeping.
This is a 1.9 Update of Xisumavoids version found here : • Minecraft: Server Friendly 1-Player Sleepi...
Commands run by player
/scoreboard objectives add sleep dummy
Commands for Command Blocks
scoreboard players add @a sleep 1 {Sleeping:1b}
execute @a[score_sleep_min=125] ~ ~ ~ weather clear
execute @a[score_sleep_min=130] ~ ~ ~ time set 0
scoreboard players set @a[score_sleep_min=1] sleep 0 {Sleeping:0b}
execute @r[score_sleep=5,score_sleep_min=5] ~ ~ ~ tellraw @a {"text":"Player is Sleeping!","color":"dark_purple"}
execute @r[score_sleep=130,score_sleep_min=130] ~ ~ ~ tellraw @a {"text":"Good Morning!","color":"dark_purple"}
Thank you for watching and please hit that subscribe button if you liked this video.