Onlysleep-Fabric-1.4.4
Curse Maven Snippet
What's new
[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.Taskholder static - Null-hardened Fabric
/onlysleep worldand/onlysleep gamemodecommand handlers
Fixed
- Fixed an inverted creative-mode check in Fabric
SleepCountsthat miscounted required sleepers - Fixed double percentage symbol appearing in
/onlysleep statuson Paper - Moved diagnostic dump paste uploads off the main server thread to run asynchronously
- Replaced deprecated
org.bukkit.ChatColoracross Paper with a dedicatedLegacyTexthelper to eliminate deprecation warnings while preserving formatting - Added support for underscores in raw Fabric configuration paths and improved percentage value parsing
- Enforced
Locale.ROOTacross 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
This mod has no additional files