Minecraft Paper 1.21.х plugin for enhanced sleep mechanics - only half of online players need to sleep to skip the night.
- Half of players needed to skip night
- Smart counting for odd player counts
- Multiple message modes (normal, minimal, silent)
- Storm and night skipping
- Ignore players in Nether and End dimensions
- Smooth time transition from night to morning
- Configuration update system (preserves settings during updates)
- Multi-world support
- Multi-language support (English, Russian, and custom languages)
- 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
- Minecraft: 1.21.5
- Server: Paper (or compatible)
- Java: 21+
- Download
SleepPlugin-1.0.3.jar - Place in server's
pluginsfolder - Restart server
After first server start with the plugin, a configuration file will be created at plugins/SleepPlugin/config.yml:
# SleepPlugin Configuration
# Do not change this version number manually
version: "1.0.3"
language: en_EN
skip-delay: 3
morning-time: 1000
message-mode: normal
min-players-required: 2
ignore-nether-end-players: true
smooth-time-transition:
enabled: true
duration-ticks: 60
steps: 60
storm-settings:
skip-storms: true language: Language for plugin messages (en_EN or ru_RU)skip-delay: Time in seconds before night is skippedmorning-time: Minecraft time value to set when skipping to morningmessage-mode: Controls how verbose the plugin messages arenormal: Standard detailed messagesminimal: Short concise messagessilent: No messages at all
min-players-required: Minimum number of players needed to activate sleep mechanics (plugin won't work with fewer players)ignore-nether-end-players: When true, players in Nether or End won't be counted for sleep calculationssmooth-time-transition: Settings for the smooth time transition featureenabled: Whether to enable smooth transition or use instant time changeduration-ticks: How long the transition should take (in ticks, 20 ticks = 1 second)steps: Number of intermediate steps (higher = smoother)
storm-settings: Settings for the storm skipping featureskip-storms: When true, players can skip storms by sleeping
You can create your own language translations by:
- Navigate to
plugins/SleepPlugin/lang/ - Copy
template.yml(automatically created on first run) oren_EN.yml/ru_RU.ymlas a template - Rename it to your language code (e.g.,
de_DE.yml,fr_FR.yml,es_ES.yml) - Translate all message strings in the file
- Set
language: de_DE(or your language code) inconfig.yml - Restart the server
The plugin will automatically detect and load any custom language file you create!
Note: template.yml is created automatically on first plugin startup with helpful comments for translation.
- Install Java 21+
- Clone repository
- Run:
./gradlew build - JAR file will be in
build/libs/
MIT License