Skip to content

Onlysleep 1.4.4

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Oct 09:34

[1.4.4] - 2026-10-18

Security

  • Fixed ReDoS-prone regular expressions in version and paste response parsing on Paper and Fabric
  • Replaced deprecated Bukkit APIs flagged by code scanning (getDescription, getDisplayName, sendTitle, Sound.valueOf, TextComponent.fromLegacyText, Spigot.sendMessage, World.get/setGameRuleValue) with Adventure and PluginMeta replacements
  • Removed dead code and made the Fabric TaskScheduler.Task holder static
  • Null-hardened Fabric /onlysleep world and /onlysleep gamemode command handlers

Fixed

  • Fixed an inverted creative-mode check in Fabric SleepCounts that miscounted required sleepers
  • Fixed double percentage symbol appearing in /onlysleep status on Paper
  • Moved diagnostic dump paste uploads off the main server thread to run asynchronously
  • Replaced deprecated org.bukkit.ChatColor across Paper with a dedicated LegacyText helper to eliminate deprecation warnings while preserving formatting
  • Added support for underscores in raw Fabric configuration paths and improved percentage value parsing
  • Enforced Locale.ROOT across commands and configuration keys to prevent locale-specific casing bugs

Changed

  • Refactored monolithic sleep managers on Paper and Fabric into dedicated lifecycle controllers (SkipCoordinator, GradualSkipController, SleepCounts, SleepEffects, SleepGamerules)
  • Split command handlers into dedicated action, dump, and config editor classes
  • Unified bed-leave and disconnect handling into a shared departure path on both platforms
  • Update checks now point at https://demonz.org/projects/onlysleep alongside Modrinth
  • Halloween countdown display is now colourised for both console and in-game chat