What Is the Sleep Percentage Plugin?
Running a multiplayer Minecraft server often means balancing the needs of many players at once. One common headache is the night cycle: a single player can hold everyone hostage by refusing to hop into bed, forcing the rest of the server to endure endless darkness and mob spawns. The Sleep Percentage plugin solves this elegantly by letting you set a configurable threshold — when enough players are sleeping, the world automatically skips to day. No more waiting for that one AFK adventurer.
How It Works
At its core, the plugin tracks how many players are currently in a bed within a specific world. You define a percentage (say, 50%) in the configuration, and once the sleeping players hit that mark, the time jumps to morning. Every time someone enters a bed, the plugin broadcasts the current progress, the required percentage, and the player’s name — keeping everyone informed and motivated to cooperate. Multi-world support means you can set different rules for your survival world, creative flatland, or any custom dimension, all from a single config file.
Key Features
- Percentage-based sleep: Skip the night only when a customizable portion of online players are in beds.
- Multi-world support: Enable, disable, or fine-tune the mechanic for each world independently.
- Real-time feedback: Broadcasts the current sleeping count versus the target percentage whenever a player lies down.
- Weather clearing: Optionally clear rain or thunderstorms when the sleep threshold is met, with adjustable clear duration.
- Sleep near monsters: Grant players the ability to sleep even when hostile mobs are nearby (requires a permission node).
- Fully customizable messages: Reword and color every chat output to match your server’s style.
Commands and Permissions
All commands are operator-only by default, but you can assign granular permissions to let moderators tweak settings without full OP access.
Commands
/sptoggle– Toggles the entire plugin on or off./spset [WorldName] <Percentage>– Sets the required percentage of sleepers for a world (WorldName is optional; omitting it applies to the current world)./spdaytick [WorldName] <Tick>– Adjusts the exact time of day when the night is skipped (0–23999)./spdisable [WorldName] <true/false>– Disables or re-enables percentage-based sleep for a specific world.
Permissions
sp.toggle– Access to /sptoggle.sp.set– Access to /spset.sp.daytick– Access to /spdaytick.sp.disable– Access to /spdisable.sp.sleepWhileMobNear– Allows sleeping even when monsters are close (must be enabled in config).
Installation and Setup
Getting started is straightforward. Download the Sleep Percentage plugin jar and place it into your server’s plugins folder. Restart the server, and the configuration file will be generated automatically. Open config.yml to adjust the default percentage, enable multi-world settings, or tweak the weather-clearing behavior. Server admins juggling multiple plugins will find the foxygame.net launcher a handy ally — it lets you download and install mods straight from its interface, saving time and hassle when keeping your server up to date.
Customizing Messages
The plugin gives you deep control over chat output through a token-based system. Each message type (like “sleeping” or “not_sleeping”) has a list of colors and a message template with placeholders. For example, you can change the broadcast to read: “{1}Currently, {0}[0]%{1} of players are sleeping out of the {0}[1]{1}% needed.” Here [0] and [1] are dynamic variables, while {0} and {1} insert colors defined in the config. This approach keeps the plugin lightweight while giving you the freedom to craft messages that feel native to your community.
Why Use Sleep Percentage on Your Server?
Vanilla Minecraft’s sleep mechanic can be a source of frustration, especially on servers with dozens of players. A single person ignoring chat or AFK in a cave forces everyone else to suffer through night after night. Sleep Percentage shifts the power to the majority, making survival gameplay more cooperative and less annoying. The optional ability to sleep near monsters — gated behind a permission — adds a layer of convenience for trusted players without breaking immersion. Combined with multi-world configuration, you can keep hardcore worlds challenging while letting your lobby or creative worlds bypass the night entirely.
Conclusion
Sleep Percentage is a lightweight yet powerful tool for any Bukkit or Spigot server. It eliminates the “one player ruins the night” problem, gives you precise control over day cycles across multiple worlds, and offers rich customization for messages and permissions. Whether you run a small private server or a large public network, this plugin helps maintain a smooth, player-friendly rhythm. Grab the latest jar, drop it into your plugins folder, and let your community wake up to a brighter, more collaborative Minecraft experience.