
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
Release5 дн. назад
Список изменений
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-2.2.0.jar(92.11 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
2.2.0
Загрузчики
BukkitPaperPurpurSpigot
Версии игры
1.21–26.1.2
Загрузок
305
Дата публикации
5 дн. назад
