Tags
Creators
Details
2.9
Compatibility
Changes
AntiAFKPlus v2.9 ā AFK Time Windows
Release type: Feature Update Compatibility: Minecraft 1.16 ā 1.21.10 | Java 17+
What's New
š AFK Time Windows
-
Configurable Time Ranges: Define daily hour ranges where AFK actions are paused or modified
-
Multiple Behaviors: Choose how the plugin handles AFK detection during configured windows:
SKIP_ACTIONS: Suppress all warnings, countdowns, and kicksMESSAGE_ONLY: Suppress actions and send informational messageEXTEND_THRESHOLD: Delay final action by configurable secondsDEFAULT: Normal AFK enforcement (used outside windows)
-
Timezone Support: Use server timezone or specify any IANA timezone ID (e.g.,
America/New_York,Europe/London) -
Wrap-Around Ranges: Support for overnight ranges (e.g.,
22:00-02:00) -
Bypass Permission: Staff can ignore windows with
antiafkplus.window.bypass
š Configuration Example
afk-windows:
enabled: true
timezone: "SERVER" # or explicit IANA ID like "America/New_York"
ranges:
- "08:00-12:00"
- "20:00-23:00"
behavior-inside-window: "SKIP_ACTIONS"
behavior-outside-window: "DEFAULT"
extend-seconds: 900 # used when behavior is EXTEND_THRESHOLD
bypass-permission: "antiafkplus.window.bypass"
š® Use Cases
- Peak Hours Protection: Disable AFK kicks during busy server hours
- Event Periods: Pause AFK enforcement during special events
- Off-Hours Flexibility: Allow extended AFK times during late night/early morning
- Regional Adaptation: Use different timezones for international servers
š§ Technical Details
- TimeWindowService: Minute-level granularity with intelligent caching
- AFKManager Integration: Evaluates windows before warnings and final actions
- Countdown/Transfer Compatibility: Pipelines and sequences respect window controls
- Reload Support:
/afkplus reloadupdates window settings without restart
⨠New Permission
antiafkplus.window.bypass: Allows players to ignore AFK windows and receive normal enforcement- Automatically included in
antiafkplus.*wildcard - Useful for staff testing and development accounts
- Automatically included in
Compatibility
- Minecraft: 1.16 ā 1.21.10
- Platforms: Bukkit, Spigot, Paper, Purpur, Folia
- Java: 17+
- Backward Compatible: All existing configurations work without changes
Upgrade Notes
- Replace the old JAR with
AntiAFKPlus v2.9 - Optional: Configure
afk-windowssection inconfig.ymlto enable time-based protection - Optional: Customize the
afk-window-activemessage inmessages.ymlfor localization - Update your dependency to
2.9if using the API:<dependency> <groupId>com.github.koyere</groupId> <artifactId>AntiAFKPlus</artifactId> <version>2.9</version> <scope>provided</scope> </dependency>
No configuration changes are required. The plugin works with your existing setup. AFK windows are disabled by default.
For Developers
API Version: 2.9 (unchanged from 2.8, no breaking changes)
The time window system is internal and transparent to the API. Developers using the API will benefit from the improved flexibility without code changes.
Version: 2.9 Release Date: 14/11/2025 Compatibility: Minecraft 1.16 - 1.21.10 Java: 17+
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:b4AUi0VN:1zphkGbE"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:b4AUi0VN:1zphkGbE"
}

