ScaledSleep
A Hytale server mod that enables scaled night skipping. When enough players sleep during nighttime, night automatically skips to morning. Server-side only (no client install required).
Features
-
Server-side only
Players do not need to install anything.
-
Scaled sleep threshold (default: 25%)
Required sleepers are calculated from eligible players online.
-
Per-world counting
Sleep requirement and progress are tracked per world.
-
Night-only sleeping window
Sleeping only counts after the configured minimum time (default: 19.5 = 7:30pm).
-
Skip delay (default: 2 seconds)
A short delay after reaching the threshold before skipping night.
-
Debounce / spam protection (default: 10 seconds)
Prevents repeated triggers and message spam.
-
Optional bed regeneration
While sleeping, players regenerate HP (default: 2.5 HP/sec). Configurable or disableable.
-
Configurable announcements
Progress message while waiting, and a final message when night is skipped.
How It Works
During the configured night window, players can sleep in beds. ScaledSleep counts sleepers per-world, calculates how many are required, and shows progress.
-
While waiting, the server announces progress:
"{sleeping}/{eligible} sleeping ({percent}%)."
-
When the threshold is reached, a countdown begins.
-
After the delay, night skips (if enabled) and the server announces:
"{sleeping}/{required} sleeping ({percent}%). Night skipped!"
If regeneration is enabled, players heal while they remain sleeping.
Commands
| Command |
Description |
/scaledsleep status |
Show current settings and live sleep progress (OP only) |
/scaledsleep reload |
Reload configuration (OP only) |
Configuration
Note: This mod stores its config per-world, in the save location for the world it’s loaded in (not a single global config file). Each world can have different settings.
Default config structure:
| Path |
Default |
Description |
sleep.requiredPercent |
0.25 |
Percent of eligible players required to sleep |
sleep.minimumRequired |
1 |
Minimum sleepers required (hard floor) |
sleep.maximumRequired |
-1 |
Maximum sleepers required (-1 = unlimited) |
sleep.perWorld |
true |
Track sleepers per world |
sleep.skipNight |
true |
Whether night is skipped when threshold reached |
sleep.minimumTime |
19.5 |
Earliest time sleep counts (7:30pm) |
sleep.setTimeTo |
1000 |
Time to set when skipping (morning) |
sleep.debounceSeconds |
10 |
Cooldown to prevent repeat triggers |
sleep.skipDelaySeconds |
2 |
Delay before skipping after threshold reached |
sleep.regen.enabled |
true |
Enable regen while sleeping |
sleep.regen.amountPerSecond |
2.5 |
HP per second while sleeping |
sleep.message.enabled |
true |
Enable final “night skipped” message |
sleep.message.template |
(shown) |
Template for final message |
sleep.progressMessage.enabled |
true |
Enable progress message |
sleep.progressMessage.template |
(shown) |
Template for progress message |
sleep.debug |
false |
Debug logging |
Message templates support variables like:
Installation
-
Drop the .jar into your server’s mods/ folder
-
Restart the server
-
Use /scaledsleep status to verify it’s running (OP only)
-
Edit the world-specific config file if needed, then run /scaledsleep reload