Dostlar STUDIO / Mods / AFK Guard

AFK Guard

Idle player kick · Server management

Early developmentFS25_AFKGuard

On a busy server the slots fill up with players nobody is sitting behind: newcomers cannot get in and the idle ones never leave. AFK Guard watches input, and everything counts as activity and resets the timer: keyboard, mouse, gamepad sticks and buttons, input inside menus as well. If nothing arrives within the configured time the player gets an “Are you there?” panel; if they do not answer within the confirmation window the client is sent back to the main menu, which means leaving the server. If the panel cannot be shown or no way out can be found, nobody is dropped and the mod goes back to watching.

Status: Early development. The mod is being tested on our own server; the feature list describes the goal and the released version may differ.

Features

What it does

  • Idle limit and confirmation window are configurable; 5 minutes and 60 seconds by default.
  • Any input resets the timer: gamepad sticks and buttons, mouse and keyboard input inside menus included.
  • Closing the panel by hand also counts as being present.
  • Only runs on multiplayer clients; disabled in the dedicated server process and for the hosting player.
  • If the panel cannot open or no route back to the main menu is found, nobody is dropped.
  • Settings live in modSettings/FS25_AFKGuard.xml; no script editing needed.
  • A test switch runs the whole flow in singleplayer, a debug switch draws the live state on screen.

Setup

How to use it

  1. Put the zip into the server's mods folder; players download it automatically.
  2. Set the timings in modSettings/FS25_AFKGuard.xml. The file is created with defaults on first run.
  3. No key binding needed. The panel opens on its own.