A BigBrotherBot plugin taking care of AFK players on your game server.
This plugin monitors your game server for inactive players. If a player is suspected to be away from keyboard (AFK) B3 will ask him if he is. If no answer if given and no activity is detected in a timely manner, the player is kicked.
NOTE: since B3 v1.10.1 beta this plugin has been included in the standard plugins set, thus all patches and updates will be performed in the official B3 repository.
Let say consecutive_deaths_threshold
is 2
and inactivity_threshold
is 30s
in the plugin config file
- If a player is afk and gets killed a 1st time, nothing happens
- If that player gets killed a second time while having shown no activity in between, he will be checked for inactivity
- Upon being checked, if his last activity is older than 30s, then B3 asks the player if he is AFK
- If no response or activity is detected in the next 20s, then the player is kicked
The latest version is available here.
Copy the afk
directory into the b3/extplugins
folder. Then activate the plugin in your B3 main config file:
If your main B3 config file is in the ini
format then add the following line in the [plugins]
section:
afk: @b3/extplugins/afk/conf/plugin_afk.ini
If your main B3 config file is in the xml
format then add the following line in the <plugins>
section:
<plugin name="afk" config="@b3/extplugins/afk/conf/plugin_afk.ini" />
If you are using the modified UrT 4.2 game engine, then you can improve the afk detection by also adding the urtposition B3 plugin.
With this modified server and B3 plugin, players will be checked when the game server reports them as standing still and player movements will be recognised as player activity.
Take a look at the @b3/extplugins/afk/conf/plugin_afk.ini
file. All settings are documented in this file.
- improve support for UrT 4.2 modified servers (with B3 urtposition plugin)
consecutive_deaths_threshold
can be set to0
to be disabled- if anyone says the word 'afk' in chat, then all players are checked for inactivity
- add
suspicion_announcement
andlast_chance_delay
to config file
- improve activity detection for Frostbite games
- players are checked for inactivity after a certain number of consecutive deaths (instead of every x sec)
- do not announce kick made by the afk plugin, B3 already does that when kicking
- improve logs
- fix inactivity recognition that would produce false positives in some cases
- cancel all checks on map change or round start to give time to players to load the map
- do not check bots
- add immunity level so admins won't get kicked
- better handling of players disconnection
- do not kick last remaining player on the server even if AFK
- initial release
If you have found a bug or have a suggestion for this plugin, please report it on the B3 forums.