SleepPlugin
Enhanced sleep mechanics for Minecraft 1.21.x and 26.x. Instead of everyone having to sleep, only a configurable percentage of online players is needed to skip the night. Works on Paper, Purpur, Spigot and compatible servers.
Features
- Configurable sleep percentage — default 50% of online players, configurable per world
- Weighted sleep votes with LuckyPerms (optional, auto-detected)
- Bossbar showing live sleep progress
- Phantom prevention (
spawn_phantomsgame rule) - Storm and night skipping
- Smooth time transition from night to morning
- Multiple message modes (normal, minimal, silent)
- Ignore players in Nether and End dimensions
- Smart counting for odd player counts
- Multi-world support with per-world overrides
- Multi-language support (English, Russian, and custom languages)
- Configuration update system that preserves your settings across updates
- Admin command
/sleep reload|status
Requirements
- Minecraft: 1.21.x or 26.x
- Server: Paper, Purpur, Spigot (or compatible)
- Java: 21+ (1.21.x) / 25+ (26.x)
Installation
- Download
SleepPlugin-1.0.4.jar - Place it in your server's
plugins/folder - Restart the server
Examples
With default sleep-percentage: 50:
- 2 players online: 1 player needs to sleep
- 3 players online: 1 player needs to sleep ((3-1)/2 = 1)
- 4 players online: 2 players need to sleep
- 5 players online: 2 players need to sleep ((5-1)/2 = 2)
- 6 players online: 3 players need to sleep
With sleep-percentage: 25:
- 4 players online: 1 player needs to sleep
- 8 players online: 2 players need to sleep
- 20 players online: 5 players need to sleep
Configuration
The config file is created at plugins/SleepPlugin/config.yml on first start:
# SleepPlugin Configuration
# Do not change this version number manually
version: "1.0.4"
language: en_EN
skip-delay: 3
morning-time: 1000
message-mode: normal
min-players-required: 2
ignore-nether-end-players: true
sleep-percentage: 50
prevent-phantoms: true
bossbar:
enabled: true
color: YELLOW
style: SOLID
title: "Sleeping %s/%s"
smooth-time-transition:
enabled: true
duration-ticks: 60
steps: 60
storm-settings:
skip-storms: true
# world-settings:
# world:
# sleep-percentage: 50
# min-players-required: 2
Settings
language: Plugin message language (en_EN or ru_RU, or any custom code)skip-delay: Seconds before the night is skippedmorning-time: Time value set when skipping to morningmessage-mode: Message verbosity (normal, minimal, silent)min-players-required: Minimum players needed to activate sleep mechanicsignore-nether-end-players: Exclude Nether/End players from calculationssleep-percentage: Percentage of online players that must sleep (1-100, default 50). At least 1 player is always requiredprevent-phantoms: Disables phantom spawning while the plugin is activebossbar:enabled: Show the sleep progress bossbarcolor: PINK, BLUE, RED, GREEN, YELLOW, PURPLE, WHITEstyle: SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20title: Bossbar title (%s= sleeping count / required count)
smooth-time-transition: Smooth time change settings (enabled,duration-ticks,steps)storm-settings: Storm skipping (skip-storms)world-settings: Per-world overrides. Add a section named after a world to overridesleep-percentageandmin-players-requiredfor that world only
Command
/sleep status— show percentage and per-world settings (permission:sleepplugin.admin)/sleep reload— reload config and language files (permission:sleepplugin.admin)
LuckyPerms Integration
SleepPlugin optionally integrates with LuckyPerms as a soft-dependency. Without it, the plugin behaves exactly as before (every player counts as 1). Install LuckyPerms and it is detected automatically.
Weighted sleep votes — set the sleepplugin.weight meta so a player's sleep counts as multiple votes:
/lp group vip meta set sleepplugin.weight 2
A VIP with weight 2 counts as 2 sleeping players, so fewer donors are needed to skip the night. Weight is clamped to 1-100 and supports LuckyPerms contexts (e.g. per world/server):
/lp group vip meta set sleepplugin.weight 2 server=survival
Permissions:
sleepplugin.exempt— player is not counted for sleep calculations (e.g. admins in creative/spectator). Default: false.sleepplugin.bypass.min-players— sleeping player skips the night even belowmin-players-requiredor when alone. Default: false.sleepplugin.admin— access to/sleepcommand. Default: op.
Note:
sleepplugin.exemptandsleepplugin.bypass.min-playersare plain Bukkit permissions — they work with any permissions plugin.
Custom Language Files
You can create your own translations:
- Navigate to
plugins/SleepPlugin/lang/ - Copy
template.yml(created on first start) oren_EN.yml/ru_RU.yml - Rename it to your language code (e.g.,
de_DE.yml,fr_FR.yml,es_ES.yml) - Translate all message strings
- Set
language: de_DEinconfig.yml - Restart the server
The plugin automatically detects all custom language files! Use template.yml — it has helpful comments for translators.
How to Install sleep plugin (Plugin)
sleep plugin by NovaDAndrew is verified for Paper, Purpur, Spigot across Minecraft versions 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5 (latest release: 1.0.4, file size: 31 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5) and platform (Paper, Purpur, Spigot).
- Make sure you have the compatible loader or environment installed for Paper, Purpur, Spigot.
- Move the downloaded sleep plugin file into your Minecraft
.minecraft/pluginsfolder and launch the game.
All Versions
+ Add Version### New Features
- Added support for Minecraft 26.x (Paper/Purpur/Spigot) and Java 25
- Added configurable
sleep-percentage(per world) - default 50%, clamped to 1-100 - Added bossbar showing sleep progress (enabled/color/style/title configurable)
- Added phantom prevention via
spawn_phantomsgame rule (prevent-phantoms) - Added per-world settings overrides (
world-settingssection) - Added admin command
/sleep reload|statuswith tab completion - Added optional LuckyPerms integration (soft-dependency):
- Weighted sleep votes via
sleepplugin.weightmeta sleepplugin.exemptpermission to exclude players from calculationssleepplugin.bypass.min-playerspermission to skip nights alone or below the minimum
### Improvements
- Updated build system to Gradle 9.6.1 with plugin-yml generation
- Generated
plugin.ymlwith command and permission registration sleep-percentagekeeps at least 1 player always required- Release workflow targets Minecraft 26.x / Java 25+
### What's New
- Universal Server Compatibility : Now works seamlessly on both Paper and Spigot servers with automatic detection
- Custom Language System : Create translations in any language beyond the default English and Russian
- Improved Message Handling : Intelligent message routing based on your server type
- Automatic discovery and loading of any custom language files
- Dynamic language file loading without restrictions
- Optimized for compatibility across different server platforms
- Added smooth time transition from night to morning with configurable speed and steps
- Added intelligent sleep tracking to prevent cancellation when enough players are still sleeping
- Added automatic configuration updates that preserve user settings when upgrading
- Added ability to set minimum number of players required for sleep functions
- Added option to exclude players in Nether and End from sleep calculations
- Added full support for skipping storms through sleeping
- Fixed issue where night skip would cancel when one player left the bed
- Bumped version from 1.0.1 to 1.0.2
Changelog:
- Added multi-language support with English (en_EN) and Russian (ru_RU)
- Added configuration file with language, skip-delay, and morning-time settings
- Updated codebase to use localized messages
- Enhanced README with configuration details and plugin features
- Bumped version from 1.0.0 to 1.0.1