A modern Minecraft plugin that lets a single player sleep, skip the night with stylish effects, lightweight performance, and full configurability — entirely AI-crafted.
I DO NOT INTEND TO MAKE ANY MONEY FROM THIS PROJECT. IF YOU HAVE ANY PROBLEM WITH THE PROJECT, YOU CAN CONTACT ME: [email protected]
This plugin has no connection to the SinglePlayerSleep plugin in SpigotMC. It is merely a coincidence in name.
This plugin was created using AI and was developed solely to demonstrate that AI can write advanced code and build a functional system. You are welcome to fork the project and utilize it as you see fit.
✨ A modern and lightweight Minecraft plugin to skip the night instantly in single-player worlds or with percentage-based voting, packed with rich features, visual effects, and fully configurable settings.
SinglePlayerSleep is designed for Minecraft servers that aim to keep the immersive single-player feel, even in multiplayer mode, by allowing the night to be skipped when a single player sleeps or when a certain percentage of players vote to sleep.
Built with performance and flexibility in mind, it features configurable messages, particle & sound effects, automatic saving, advanced protections, AFK detection, and automatic update checking.
Whether you run a small private SMP or a public server, SinglePlayerSleep seamlessly handles night skipping and enhances the sleeping experience without needing everyone online to sleep.
✅ Skip the night when just one player sleeps (classic mode)
✅ NEW: Percentage-based sleep voting system
✅ NEW: AFK player detection and exclusion from sleep count
✅ NEW: Automatic GitHub update checker
✅ Fully configurable delay before skipping night
✅ Cooldown between sleep events to prevent spam
✅ Automatic weather clearing on new day
✅ Particle and sound effects for visual feedback
✅ NEW: Smart particle optimization based on player count
✅ NEW: Config cache system for 30-50% faster performance
✅ Real-time sleep progress messages
✅ Auto-save worlds after night skip to prevent data loss
✅ Custom messages with color codes
✅ World-specific activation
✅ Anti-spam protection and detailed debug logs
✅ Track sleep statistics per player
✅ Lightweight, efficient and easy to install
Choose between single-player mode or percentage-based voting:
Intelligent AFK detection system:
Stay up to date effortlessly:
Major optimization updates:
SinglePlayerSleep comes with a powerful and clear config.yml file to tailor the plugin to your needs.
.jar file into your server's /plugins folder.config.yml file as needed./sleep reload to apply configuration changes.Requirements:
Just go to bed! Once a player sleeps:
/sleep help - Show all available commands/sleep reload - Reload configuration/sleep stats [player] - View sleep statistics/sleep version - Check plugin versionsingleplayersleep.use - Basic plugin usagesingleplayersleep.admin - Admin commands (reload, stats)Here's the complete config with v1.1.0 features:
# ============================================
# SinglePlayerSleep Configuration v1.1.0
# ============================================
# --- Sleep Mode Settings ---
# Classic mode: Only one player needs to sleep
# Percentage mode: A % of online players must sleep
percentage-mode: false
sleep-percentage: 50 # 50% of players must sleep
# Delay in ticks before night skip (~3.25 seconds)
sleep-delay-ticks: 65
# Cooldown before sleep can be triggered again (seconds)
cooldown-seconds: 30
# --- AFK Detection ---
afk-detection:
enabled: true
timeout-seconds: 300 # 5 minutes
ignore-afk-players: true # Exclude AFK players from sleep count
# --- Weather & World Settings ---
clear-weather: true
enabled-worlds: [] # Empty = all worlds, or specify: [world, world_nether]
# --- Auto-Save Settings ---
auto-save:
enabled: true
delay-ticks: 10 # Delay after night skip before saving
# --- Visual & Sound Effects ---
effects:
particles:
enabled: true
optimize: true # Scale particles based on player count
max-per-player: 10 # Maximum particles per player
sounds:
enabled: true
# --- Update Checker ---
update-checker:
enabled: true
github-repo: "MRsuffixx/SinglePlayerSleep"
# --- Messages ---
messages:
player-sleeping: "&a{player} slept. Everyone, good night!"
sleep-progress: "&e{current}/{required} players sleeping..."
good-morning: "&6Good morning everyone!"
auto-save: "&7&o[Server: Saving the game...]"
cooldown-active: "&cSleep is on cooldown for {time} more seconds!"
no-permission: "&cYou don't have permission to use this command!"
not-night: "&cYou can only sleep during the night!"
world-disabled: "&cSleep functionality is disabled in this world!"
afk-warning: "&7You are now marked as AFK"
# --- Advanced Settings ---
debug-mode: false
log-sleep-events: true
anti-spam-protection: true
max-player-stats: 1000
percentage-mode: true
sleep-percentage: 30 # Only 30% need to sleep
afk-detection:
enabled: true
ignore-afk-players: true
effects:
particles:
optimize: true # Reduces lag on large servers
percentage-mode: false # Classic single-player mode
sleep-delay-ticks: 20 # Faster night skip
cooldown-seconds: 10
effects:
particles:
optimize: false # Full visual effects
max-per-player: 15
percentage-mode: true
sleep-percentage: 75 # Most players must agree
sleep-delay-ticks: 100 # Slower, more realistic
messages:
player-sleeping: "&7{player} has retired to their quarters..."
good-morning: "&eThe sun rises over the kingdom..."
Based on testing with v1.1.0:
| Player Count | TPS Impact (Old) | TPS Impact (New) | Improvement |
|---|---|---|---|
| 1-5 players | -0.5 TPS | -0.2 TPS | 60% better |
| 10 players | -2.0 TPS | -0.8 TPS | 60% better |
| 20+ players | -4.5 TPS | -1.8 TPS | 60% better |
Config cache and particle optimization make a significant difference!
We welcome pull requests, bug reports, and feature suggestions!
git checkout -b feature/new-featuregit commit -m "Add new feature"git push origin feature/new-feature# Clone the repository
git clone https://github.com/MRsuffixx/SinglePlayerSleep.git
# Build with Maven
mvn clean package
# Output: target/singleplayersleep-1.1.0.jar
If you encounter bugs, crashes, or need help configuring, please open an issue with:
Planned features for future releases:
Distributed under the MIT License.
See LICENSE for more information.
Author: MRsuffix
Contributors: Community contributors (see GitHub)
Built with: Java 21, Spigot/Paper API
If you find this plugin useful, please consider:
Your feedback helps us improve and keep the project alive!
🧡 Built with love for the Minecraft community.
Current Version: 1.1.0
Last Updated: November 2025
Minecraft Compatibility: 1.21.10+