Tags
Creators
Details
Licensed MIT
Published 3 months ago
Updated 4 hours ago
All versions
1.4.0
Release
OnlySleep 1.4.0 -partial fabric support soon 5 days ago 6
Uploaded by
Compatibility
Minecraft: Java Edition
26.2
26.1.x
Platforms
Bukkit
Folia
Paper
Purpur
Spigot
Changes
[1.4.0] - 2026-08-29
Latest-only 1.26.x - Java 25, Minecraft 26.2 (Paper & Fabric). Full parity + new APIs.
Added
- In-game config commands:
/onlysleep set <percentage|skiptype|perworld|skipdelay|morningtime|resettime|gradualspeed|clearweather|clearthunder|bossbar|actionbar|progressbar|title|sounds|managegamerule|afktime> <value>with persistence,/onlysleep get <key>,/onlysleep toggle <key>,/onlysleep world <enable|disable|list> [world],/onlysleep gamemode <enable|disable|list> [type]- all with tab-complete - Dump command:
/onlysleep dump [paste]- writesplugins/Onlysleep/dumps/dump-*.txtwith config, worlds, eligible/sleeping/required, gamerules, players (AFK/exempt), messages;pasteuploads topaste.mcsrv.top - Developer API:
api/OnlysleepAPI.java(setSleepPercentage,setSkipType,getRequiredSleepingCount,forceSkipNight,getDiscordMessage/stripColorfor ZDiscord),api/events/NightSkipEvent/SleepStartEvent/SleepCancelEvent(cancellable,fabric/api/*parity) - Fabric parity:
sleep-percentage 0default, setters,api/OnlysleepFabricAPI, same events, full command parity,FabricConfigManagerpersistence,PermissionHandleronlysleep.config/dump/world/gamemode - Discord helpers:
OnlysleepAPI.getSleepStartDiscordMessage/getEnoughSleepingDiscordMessage/getCancelledDiscordMessagefor ZDiscord bridge
Changed
- Default to 1.26.x only:
build.gradle.ktspaperApi 26.2-R0.1-SNAPSHOT/Java 25,plugin.ymlapi-version 1.21,fabric 26.2/java >=25/fabric-loader >=0.19.3,README26.2, Java 25+,sleep-percentage 0(was 50) for true one-player default - Help now lists
set/get/toggle/world/gamemode/dumpwithsetoptions footer
Fixed
- Gradual mode not cancellable: leaving bed during
gradual/speed(activeTransitions) now cancels ifsleeping < required- both Papermanager/SleepManager.java:206,230,469and Fabricfabric/SleepManager.java:184,201,419+ timer check each tick
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:Tr6srgFS:DKgBeW6Y"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:Tr6srgFS:DKgBeW6Y"
}

