▶️ ЗАБЕРИ СВОИ 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

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
  • /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-2.2.0.jar(92.11 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

2.2.0

Загрузчики

Bukkit
Paper
Purpur
Spigot

Версии игры

1.21–26.1.2

Загрузок

305

Дата публикации

5 дн. назад

Загрузил

ID версии

Главная