if you are sleeping in a bed and someone else trys to sleep in it YOU will get the "This bed is occupied" message
when one player is sleeping in a bed and another tries to sleep in it the player in the bed will see the "bed is occupied" message
when one player is sleeping in a bed and another tries to sleep in it the player in the bed will see the "bed is occupied" message