Anyone can sleep in a bed to skip the night unless any player is on the nosleep list. Players can use the command /nosleep to add themselves to the nosleep list. Players typically do this when they need the night for mob spawns, and when the night is over, they will automatically be removed from the list so they cannot repeatedly force night. If someone is on the nosleep list, they have added themselves on it because they need it. Please do not ask players to take themselves off of the nosleep list. Even if night is not skipped, laying in a bed will make phantoms stop attacking you for the next few days.