Compatibility
Minecraft: Java Edition
Platforms
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
DrSleep
DrSleep is similar to singleplayer sleep where one player in bed will skip the night. However, the difference is that, with DrSleep, if any player wants it to stay night, sleeping won't skip the night. Players can use the /preventsleep command to stop players from sleeping through the night.
What are the alternatives?
Default
If you do nothing, all players on the server need to be sleeping in a bed to skip the night. This rarely ever happens on servers due to a lack of coordination. As a result, the normal day/night cycle continues even if all of the players on the server want to skip the night which can be frustrating.
/gamerule playersSleepingPercentage
This vanilla gamerule which was added in 1.17 allows for admins to set it so a certain number of players need to sleep to skip the night. You can set it to a realy low value like 1% which will make it so any player sleeping in a bed will skip the night. This can be irrational in cases where the majority of players want the night. Increasing the percentage to a higher number can lead to the coordination problems discussed earlier.
Harbor
One of the most popular sleeping plugins, Harbor makes it so the number of players sleeping in beds inreases the speed at which night ends. I find this to be unfair to the players who want night since they can't do the same to skip the day. It also makes it so the players who want to skip night are wasting some of their time laying in bed.
VoteSkip
VoteSkip sends messages to all players asking them to vote and showing a tally of the current results. This can make chat feel even more crowded than it already is.
DrSleep
Players who want to keep the night can mark themselves that way with /preventsleep. When a player clicks a bed, DrSleep checks if there are any players who have requested to prevent sleep, and respects their wishes if so. Otherwise, it'll skip the night. Players who log off or leave the world stop preventing sleep. Additionally, to prioritize active players' wishes over those who are inactive, you can make it so players have to renew their /preventsleep each day.
Commands and Permissions
Command | Description | Permission |
---|---|---|
/preventsleep | Prevents other players from skipping the night | drsleep.preventsleep |
/allowsleep | Removes you from the list of players preventing skipping | |
/drsleep list | Lists users who are preventing sleep | drsleep.list |
/drsleep clear | Clears the list of people who are preventing sleep | drsleep.clear |
drsleep reload | Reloads the config and language files | drsleep.reload |