Skip to content

How to Configure

Nicolai edited this page Aug 11, 2025 · 3 revisions

BungeeAFK comes with a lot of customization options, allowing you to tailor the plugin to your server's needs. Below is a guide on how to configure BungeeAFK effectively.

Important: if you update the config.yml while BungeeAFK is running, you need to run /bafk configure reloadconfig to override the cached settings with the config values!

Configuration File

The main configuration file is located at plugins/BungeeAFK/config.yml. Open this file to view and edit the settings.

Language File

The language file is located at plugins/BungeeAFK/lang/lang_xx.json. There is one english and one german file included by default. You can adjust all messages displayed by the plugin in this file, but you need to make sure that all the keys remain the same. For example, you can change the AFK warning message by modifying the notification.afk_warning key in the language file.

{
  "notification.afk_warning": "Your desired message here"
}

If a key is missing in the language file, the plugin will use the default message.

Configuration Options

General Settings

Language (lang)

The language setting allows you to choose the language for the plugin's messages. You can set it to en for English or de for German. The plugin will use the language file: lang_xx.json where xx is the language code you set. Default is en.

Warning Delay (warning-delay)

This is the delay in seconds after which a warning message is sent to the player after their last activity. The warning message can be customized in the language file under the key notification.afk_warning. Default is 90 seconds.

AFK Delay (afk-delay)

This is the delay in seconds after which a player is considered AFK if they have not interacted with the server. The AFK message can be customized in the language file under the key notification.afk.<action>. Default is 180 seconds.

Action Delay (action-delay)

This is the delay between a player's last interaction and the Action as configured in the action entry. Default is 420 seconds.

Action (action)

This setting allows you to specify the action that will be taken when Action Delay is reached. You can choose from the following options:

  • kick: The player will be kicked from the server.
  • connect: The player will be connected to a specified afk-server.
  • teleport: The player will be teleported to a specified afk-location.
  • nothing: No action will be taken.

Default is kick.

AFK Server (afk-server-name)

This is the name of the server to which players will be connected when the action is set to connect. Make sure this server is enabled and present in your proxy's config.

AFK Location (afk-location)

This is the location to which players will be teleported when the action is set to teleport.

Allow Bypass (allow-bypass)

If true, players with the permission afk.bypass bypass the AFK system. Default is true.

Disabled Servers (disabled-servers)

This is a list of servers where the AFK system is disabled. Players on these servers will not be marked as AFK. You can specify multiple servers by separating them with commas.

Example:

disabled-servers: [lobby, survival]

Bypass Regions (bypass-regions)

This is a list of regions where players will not be marked as AFK. You can, but should not specify regions manually here, but rather use the /afk region add command to add regions.

Auto Clicker Detection Settings

Enable Auto Clicker Detection (auto-clicker.enabled)

If true, auto clicker detection is enabled. Default is false.

Allow Auto Clicker Bypass (auto-clicker.allow-bypass)

If true, players with the permission bungeeafk.auto-clicker.bypass bypass the auto clicker detection. Default is true.

Notify Permission (auto-clicker.notify-permission)

This is the permission required to receive notifications about auto clicker detections. Default is bungeeafk.auto-clicker.notify.

Notify detected Player (auto-clicker.notify-player)

If true, players will receive a notification when they are detected as using an auto clicker. Default is true.

Action on Detection (auto-clicker.action)

This setting allows you to specify the action that will be taken when an auto clicker is detected. You can choose from the following options:

  • kick: The player will be kicked from the server.
  • open-inv: An empty inventory will be opened for the player to prevent clicks from impacting the world.
  • nothing: No action will be taken.

Detection History (auto-clicker.detection-history-size)

This is the number of detection events that will be stored in the history for each player. History can be viewed using the /bafk auto-clicker detection-history <player> command. Default is 10.

Disabled Servers for Auto Clicker Detection (auto-clicker.disabled-servers)

This is a list of servers where auto clicker detection is disabled. Players on these servers will not be checked for auto clicker usage.

Example:

auto-clicker:
  disabled-servers: [lobby, survival]

Movement Pattern Detection Settings

Enable Movement Pattern Detection (movement-pattern.enabled)

If true, movement pattern detection is enabled. Default is true.

Allow Movement Pattern Bypass (movement-pattern.allow-bypass)

If true, players with the permission bungeeafk.movement-pattern.bypass bypass the movement pattern detection. Default is true.

Notify Permission (movement-pattern.notify-permission)

This is the permission required to receive notifications about movement pattern detections. Default is bungeeafk.movement-pattern.notify.

Notify detected Player (movement-pattern.notify-player)

If true, players will receive a notification when they are detected as using a movement pattern. Default is true.

Action on Detection (movement-pattern.action)

This setting allows you to specify the action that will be taken when a movement pattern is detected. You can choose from the following options:

  • kick: The player will be kicked from the server.
  • connect: The player will be connected to a specified afk-server.
  • teleport: The player will be teleported to a specified afk-location.
  • nothing: No action will be taken.

Disabled Servers for Movement Pattern Detection (movement-pattern.disabled-servers)

This is a list of servers where movement pattern detection is disabled. Players on these servers will not be checked for movement patterns. Example:

movement-pattern:
  disabled-servers: [lobby, survival]

Required Certainty (movement-pattern.certainty-threshold)

This is the minimum certainty required for a movement pattern to be considered suspicious. The value should be between 0 and 1, where 1 means 100% certainty. Certainty is calculated using the standard deviation of intervals between visiting the same block.

The formula used is: Math.max(0, 1 - (stdDev / 1000.0))

Meaning that a value of 0.9 is reached when the standard deviation is 100 milliseconds.

Default is 0.9.

Sample Size (movement-pattern.sample-size)

This is the number of required samples to detect a movement pattern. Example: If set to 5, the player must visit the same block at least 5 times before the movement pattern can be analyzed. Default is 5.

Clone this wiki locally