Skip to content

Add optional compatibility with JustAFK - #42

Open
CaptainRatax wants to merge 1 commit into
hraponssi:mainfrom
CaptainRatax:main
Open

Add optional compatibility with JustAFK#42
CaptainRatax wants to merge 1 commit into
hraponssi:mainfrom
CaptainRatax:main

Conversation

@CaptainRatax

@CaptainRatax CaptainRatax commented Aug 25, 2026

Copy link
Copy Markdown

Summary

This PR adds optional compatibility with JustAFK 1.2.0 and newer.

  • Retrieve the JustAFK provider through Bukkit's ServicesManager.
  • Ignore players marked as AFK by JustAFK when IgnoreAFKPlayers is enabled.
  • Preserve the existing Essentials AFK integration.
  • Declare JustAFK as a soft dependency so Sleeper continues to work without it.
  • Keep the JustAFK API dependency as provided, preventing it from being bundled into Sleeper.
  • Handle unsupported older JustAFK versions without preventing Sleeper from starting.
  • Update the configuration comments and README.
  • Bump the plugin version to 1.10.9.

Testing

  • Successfully built the plugin with Maven.
  • Manually tested the integration on a Minecraft server with JustAFK installed.
  • Confirmed that JustAFK is detected and its AFK players are excluded from sleep calculations as expected.

Closes #41

Add optional support for JustAFK 1.2.0+ through its public API.

Players marked as AFK by either Essentials or JustAFK are now excluded from sleep calculations when IgnoreAFKPlayers is enabled. Declare JustAFK as a soft dependency, prevent its API from being bundled, handle unsupported older versions, and document the new compatibility.

Bump the plugin version to 1.10.9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add compatibility with JustAFK

1 participant