
Onlysleep
One player sleeps. Everyone wakes up.
Onlysleep lets your server skip the night without waiting for every player to find a bed. One sleeper is enough by default, but you can require any percentage from 0 to 100. Install the JAR, restart the server, and the default configuration is ready to use.

- One-player sleep by default, with configurable percentage thresholds
- Separate sleep counts for each world
- Independent controls for clearing rain and thunder
- Boss bar, action bar, title, and progress-bar feedback
- Configurable sounds for bed entry and successful night skips
- Built-in AFK tracking, plus EssentialsX and CMI support
- Filters for spectators, creative players, flying players, game modes, and exempt permissions
- Automatic handling of the
playersSleepingPercentagegamerule - PlaceholderAPI support for sleep, world, and status data
- Optional update checks and anonymous bStats metrics


Requirements: Minecraft 26.3 and Java 25 or newer. Onlysleep works on its own; PlaceholderAPI is optional.


Aliases: /os, /sleep

| Permission | Default | Description |
|---|---|---|
onlysleep.* |
OP | All permissions |
onlysleep.command |
Everyone | Use commands |
onlysleep.info |
OP | View plugin info |
onlysleep.reload |
OP | Reload config |
onlysleep.status |
OP | View status |
onlysleep.exempt |
None | Excluded from sleep (operators sleep by default) |
onlysleep.update |
OP | Update alerts |

You can use the defaults as-is. The main setting is sleep-percentage in config.yml:
0= one player sleeps, everyone wakes up50= half the server needs to be in bed100= everyone has to sleep
Set per-world-sleep: false if you want global counting across all worlds.
See config.yml for every option and messages.yml for message customization.


If you have PlaceholderAPI installed, these placeholders are available:
| Placeholder | Description |
|---|---|
%onlysleep_sleeping% |
Sleeping players in the player's world |
%onlysleep_required% |
Players needed to skip the night |
%onlysleep_percentage% |
Configured sleep percentage |
%onlysleep_total% |
Total eligible players in the world |
%onlysleep_progress% |
% of required sleepers achieved (0-100) |
%onlysleep_progress_bar% |
Visual progress bar |
%onlysleep_sleeping_names% |
Names of sleeping players |
%onlysleep_status% |
"Sleeping" or "Awake" |
%onlysleep_is_sleeping% |
true/false |
%onlysleep_is_night% |
true/false if it's night |
%onlysleep_is_sleepable% |
true/false if night/storm |
%onlysleep_skipping% |
true/false if a skip is scheduled |
%onlysleep_enabled% |
true/false if sleeping is enabled in the world |
%onlysleep_afk% |
true/false if the player is AFK |
%onlysleep_version% |
Plugin version |
%onlysleep_platform% |
Server platform (Folia/Paper/Spigot/Bukkit) |
%onlysleep_world_sleeping_<world>% |
Sleeping count in a specific world |
%onlysleep_world_required_<world>% |
Required count in a specific world |
%onlysleep_world_total_<world>% |
Total eligible in a specific world |
Building
git clone https://github.com/DemonZ-Development/Onlysleep.git
cd Onlysleep
./gradlew clean build
The compiled JAR is in build/libs/.
bStats
Onlysleep uses bStats for anonymous usage metrics. You can opt out in plugins/bStats/config.yml.
Links
Sponsored By
No gallery available for this project.
| Version | Minecraft | Loader | Download |
|---|---|---|---|
|
OnlySleep 1.4.4 1.4.4 |
26.3
|
fabric
|
Download |
|
OnlySleep 1.4.4 1.4.4 |
1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2, 26.3
|
bukkit, folia, paper, purpur, spigot
|
Download |
|
OnlySleep 1.4.3 1.4.3 |
26.3
|
fabric
|
Download |
|
OnlySleep 1.4.3 1.4.3 |
26.1, 26.1.1, 26.1.2, 26.2, 26.3
|
bukkit, folia, paper, purpur, spigot
|
Download |
|
OnlySleep 1.4.2 1.4.2 |
26.3
|
fabric
|
Download |
|
OnlySleep 1.4.2 1.4.2 |
26.1, 26.1.1, 26.1.2, 26.2, 26.3
|
bukkit, folia, paper, purpur, spigot
|
Download |
|
OnlySleep 1.4.1 1.4.1 |
26.2
|
fabric
|
Download |
|
OnlySleep 1.4.1-Patch update 1.4.1 |
26.1, 26.1.1, 26.1.2, 26.2
|
bukkit, folia, paper, purpur
|
Download |
|
OnlySleep 1.4.0 -partial fabric support soon 1.4.0 |
26.1, 26.1.1, 26.1.2, 26.2
|
bukkit, folia, paper, purpur, spigot
|
Download |
|
OnlySleep 1.3.0 1.3.0 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
|
bukkit, folia, paper, purpur, spigot
|
Download |
|
OnlySleep 1.2.0 1.2.0 |
1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2
|
bukkit, folia, paper, purpur, spigot
|
Download |
|
OnlySleep 1.1.0 1.1.0 |
1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2
|
bukkit, folia, paper, purpur, spigot
|
Download |
|
OnlySleep 1.0.0 1.0.0 |
1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2
|
bukkit, folia, paper, purpur, spigot
|
Download |