▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/SinglePlayerSleep - Sleep Plugin
SinglePlayerSleep - Sleep Plugin

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.

8.3K
6

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
  • /sleep vote command now correctly checks cooldown in percentage mode
  • Particles no longer spawn in wrong world when player changes worlds during countdown

🟠 High

  • Removed empty PhantomListener event handler that registered but did nothing
  • Hardcoded night time values (12541, 23458) replaced with named constants SUNSET_TICKS and SUNRISE_TICKS
  • Update checker default repository corrected from SinglePlayerSleep to SinglePlayerSleepV2
  • CooldownManager now uses ConcurrentHashMap to prevent race conditions with async PlaceholderAPI calls
  • VoteModule.addVote() race condition fixed by chaining computeIfAbsent() and add() 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 uses getEffectiveSleepingCount() instead of raw sleepingPlayers.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 single LeaderboardSnapshot object
  • Night time boundary checks documented with inline comments
  • Redundant null check on sleepManager parameter removed from AfkModule.scheduledCheck()

🔵 Low

  • sleepingPlayers changed from ConcurrentHashMap.newKeySet() to HashSet (all access is on main thread)
  • Redundant replaceAll("[^0-9]", "") regex removed from SleepRule.parseInt()

⚪ Style

  • MessageUtil field in SleepManager now 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 enabled so 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.enabled and speed.

🛑 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 bossbar and smooth-sleep configuration sections.
  • [Config] Added player-woke-up message.
  • [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

Совместимость

Minecraft: Java Edition

26.1.x1.21.x1.20.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:MIT
Опубликован:8 месяцев назад
Обновлён:5 дней назад
Главная