WorldGuardIntegration
Features
- Registers a custom WorldGuard region flag:
afk-bypass. - Allows regions to permit or block AFK detection for players within those regions.
- Automatically detects WorldGuard and enables integration if configured.
- Uses the
afk-bypassflag to let players in specific regions avoid AFK detection. - Logs integration status and flag registration for server admins.
Setup & Usage
- Install the WorldGuard plugin on your server.
- Ensure
integration.worldguardis enabled in your EzAfk configuration (config.yml). - EzAfk will automatically detect WorldGuard and register the
afk-bypassflag. - To allow players to bypass AFK detection in a region:
- Add the
afk-bypassflag to the desired region and set it toALLOW. -
Example command:
/region flag <region> afk-bypass allow
- Add the
- Players inside regions with
afk-bypass: allowwill not be marked as AFK by EzAfk. - Server logs will indicate if the flag was registered or if an existing flag is used.
- No further setup is required; integration works automatically once enabled.