
SinglePlayerSleep - Sleep Plugin
A modern Minecraft plugin that lets a single player sleep, skip the night with stylish effects, lightweight performance, and full configurability — entirely AI-crafted.
SinglePlayerSleep - Sleep Plugin 2.2.0
release9 апреля 2026 г.Changelog
[Unreleased] - 2026-04-09
Fixed
🔴 Critical
SleepSession.getSleepingPlayers()now returns the actual sleeping players set instead of a new empty set/sleepvote command now correctly checks cooldown in percentage mode- Particles no longer spawn in wrong world when player changes worlds during countdown
🟠 High
- Removed empty
PhantomListenerevent handler that registered but did nothing - Hardcoded night time values (
12541,23458) replaced with named constantsSUNSET_TICKSandSUNRISE_TICKS - Update checker default repository corrected from
SinglePlayerSleeptoSinglePlayerSleepV2 CooldownManagernow usesConcurrentHashMapto prevent race conditions with async PlaceholderAPI callsVoteModule.addVote()race condition fixed by chainingcomputeIfAbsent()andadd()into a single atomic call- Action bar messages migrated from deprecated Bungee Chat API to Adventure API
- AFK exclusion message no longer spams chat on every sleep attempt; now sent once per session
refreshRequirement()now usesgetEffectiveSleepingCount()instead of rawsleepingPlayers.size()- Players removed from sleep tracking correctly on quit/kick regardless of
isSleeping()state
🟡 Medium
- Leaderboard cache (
topSleepersCache,topContributorsCache,lastLeaderboardRefresh) now updated atomically via a singleLeaderboardSnapshotobject - Night time boundary checks documented with inline comments
- Redundant null check on
sleepManagerparameter removed fromAfkModule.scheduledCheck()
🔵 Low
sleepingPlayerschanged fromConcurrentHashMap.newKeySet()toHashSet(all access is on main thread)- Redundant
replaceAll("[^0-9]", "")regex removed fromSleepRule.parseInt()
⚪ Style
MessageUtilfield inSleepManagernow uses simple class name instead of fully qualified name
🌏 And more error and feature fixed.
SinglePlayerSleep - Sleep Plugin 2.0.0
release5 апреля 2026 г.NEW VERSION
SinglePlayerSleep v1.2.1 - Auto-Update Config 🛠️
release15 февраля 2026 г.SinglePlayerSleep v1.2.1 - Auto-Update Config 🛠️
This update focuses on quality-of-life improvements for server owners updating from older versions.
🌟 What's New
🔄 Intelligent Config Auto-Update
Upgrading from v1.1.0 to v1.2.0+? You no longer need to regenerate your config file!
- The plugin now automatically adds missing configuration settings (like BossBar and Smooth Sleep options) to your existing config.yml.
- Your previous settings are strictly preserved.
- New features default to
enabledso you can enjoy them instantly.
📋 Changelog
- [Feature] Implemented auto-update logic for config.yml.
- [Improvement] Existing configurations will now automatically receive new keys for
bossbar,smooth-sleep, and new messages.
Full Changelog: https://github.com/MRsuffixx/SinglePlayerSleep/compare/v1.2.0...v1.2.1
SinglePlayerSleep v1.2.0 - Smooth Sleep & Logic Fixes 🛌✨
release15 февраля 2026 г.SinglePlayerSleep v1.2.0 - Smooth Sleep & Logic Fixes 🛌✨
This update brings significant improvements to the sleeping experience, visual feedback, and core logic stability.
🌟 Highlights
⚡ Smooth Sleep (Time Acceleration)
Gone are the days of the sun instantly snapping to the horizon! The transition to morning is now smooth and animated, with time accelerating rapidly until daybreak. This provides a much more immersive experience.
- Configurable via
smooth-sleep.enabledandspeed.
🛑 Sleep Cancellation ("Sleep Scam" Fix)
We've fixed a major logic loop where night would still skip even if a player left their bed.
- New Logic: If you leave your bed before the night skip timer completes (or if the percentage drops below requirement), the skip is cancelled immediately.
- Added a "Player woke up" message to notify the server.
📊 BossBar Progress
Players now get clear visual feedback when someone is sleeping.
- A BossBar appears at the top of the screen showing: "Sleeping... (X%)".
- Fully customizable title, color, and style.
🔧 1.21 Support
- Updated internal API usage to fully support Minecraft 1.21 - 1.21.11.
- Fixed particle names to match modern API standards (
ENCHANT,HAPPY_VILLAGER, etc.).
📋 Changelog
- [Feature] Added Smooth Sleep time acceleration.
- [Feature] Added BossBar for sleep progress.
- [Fix] Fixed night skipping even if player leaves bed.
- [Fix] Updated particle names for 1.21 compatibility.
- [Config] Added
bossbarandsmooth-sleepconfiguration sections. - [Config] Added
player-woke-upmessage. - [Tech] Updated project to Java 21 and Paper API 1.21.
⚙️ Configuration Changes
Add these to your config.yml to use the new features:
bossbar:
enabled: true
title: "&e&lSleeping... &f({percentage}%)"
color: BLUE
style: SOLID
smooth-sleep:
enabled: true
speed: 100
messages:
player-woke-up: "&e{player} woke up! Night skip cancelled."
Full Changelog: https://github.com/MRsuffixx/SinglePlayerSleep/compare/v1.1.0...v1.2.0
SinglePlayerSleep 1.1.0
release4 ноября 2025 г.🎉 SinglePlayerSleep v1.1.0 - Major Update!
🆕 New Features
🎯 Percentage-Based Sleep System
- Choose between single-player mode or percentage voting
- Configure how many players must sleep (e.g., 50%)
- Real-time progress messages: "3/5 players sleeping..."
😴 AFK Detection
- Automatically detects inactive players (5 min timeout)
- AFK players excluded from sleep count
- Prevents AFK players from blocking night skip
🔄 Auto Update Checker
- Checks GitHub for new versions on startup
- Console notifications with download links
- Can be disabled in config
⚡ Performance Boost
- Config Cache System: 30-50% faster config access
- Smart Particle Optimization: Auto-scales based on player count
- TPS Improvement: 40-60% better performance on large servers
🐛 Bug Fixes
- Fixed plugin.yml main class path
- Added null safety checks
- Resolved config duplicate field issues
- Improved overall stability
📥 Download
📋 Requirements
- Minecraft 1.21.10+
- Java 21+
- Spigot/Paper
🔧 Quick Config Example
percentage-mode: true
sleep-percentage: 50
afk-detection:
enabled: true
ignore-afk-players: true
effects:
particles:
optimize: true
Full changelog and documentation: README.md
