AFKManager

版本 v0.3.1·更新於 2026-09-24

Stops AFK players from holding up your Valheim dedicated server: announces who is AFK, AFK players do not block sleep, no new random raids on AFK-only bases. Server-side only: players install nothing.

截圖 共 1 張

模組介紹 作者原文

AFKManager

One idle player shouldn’t hold your whole Valheim server hostage.

AFKManager is a plugin for Valheim dedicated servers. It notices when a player has stepped away, tells everyone, and

makes sure the AFK player doesn’t get in the way of the people who are still playing. It is installed only on the

server: players join with a completely vanilla game and install nothing.

What it does

  • Everyone knows who is AFK. When a player goes idle, the server says so in chat and in the top-left message feed:

AFKManager: Toro is now AFK. — and Toro is no longer AFK. when they are back.

  • AFK players don’t block sleep. The night skips as soon as everyone who is still playing is in bed. A player idling

in the base no longer keeps the whole server awake. (At least one player still has to be in bed.)

  • No new random raids on AFK-only bases. If every player in a raid area is AFK, no new random raid starts there.

An active teammate nearby keeps raids working as usual, and a raid that is already running is never cancelled.

  • Going AFK on purpose. Type /rest in chat before stepping away and you are marked AFK straight away.
  • A moving ship is not activity. Movement is measured relative to the ship, so a passenger standing still on a sailing

ship still counts as idle.

  • Nothing for players to install. No BepInEx, no mod, no config on the client. Works on Steam and crossplay servers.

Everything is on by default, with a 10-minute AFK timeout. Each part can be switched off on its own.

Installation

AFKManager goes on the server only.

Mod manager / hosting panel: install AFKManager on the server. The package depends on

BepInExPack Valheim.

Manual:

  • Install BepInExPack Valheim on the dedicated server.
  • Copy the DLL to BepInEx/plugins/AFKManager/AFKManager.dll on the server.
  • Restart the server.

Players don’t need to do anything. Installing it on a client does nothing.

Main settings

BepInEx/config/torokal.afkmanager.cfg is created on the first start. The settings most servers care about:

| Setting | Default | What it does |

|---|---|---|

| AfkAfterMinutes | 10 | How long a player can be idle before they are marked AFK. |

| AnnounceInChat / AnnounceNotification | true | Announce in the chat window and/or the top-left message feed. |

| ExcludeAfkFromSleep | true | AFK players don’t block the night skip. |

| ExcludeAfkFromRandomRaids | true | No new random raids in areas where every player is AFK. |

| ManualAfkEmote | rest | The emote players type to go AFK on purpose. Empty = off. |

All settings are listed under Full configuration.

How it works

The rest of this page explains the details: what counts as activity, exactly when sleep and raids are affected, and why

players need nothing installed.

Server side

AFKManager is a BepInEx plugin that runs on the dedicated server, so the server needs BepInEx. Players join with a

completely vanilla game: no BepInEx, no AFKManager, no configuration. AFKManager adds no custom network messages, no

handshake and no version check, and it never rejects clients. It only reads data every vanilla client already sends to

the server, and it announces through messages every vanilla client already understands.

Installing it on a client does nothing. On a player-hosted (non-dedicated) game the host is not tracked.

What counts as activity

| Activity | Notes |

|---|---|

| Moving | More than 0.5 m between two checks. Slow physics drift (e.g. sliding on a slope, bobbing in water) is ignored. |

| Moving on a ship | Measured relative to the ship: a passenger standing still on a sailing ship is idle; walking on deck is activity. |

| Looking around | Turning the view by more than 10°. |

| Emotes | Starting (or ending) an emote such as /wave or /sit. Staying seated does not count. |

| Equipment | Equipping, unequipping or swapping gear. |

| Crafting stations | Opening or closing a workbench, forge, etc. Leaving the window open does not count. |

| Going to bed | Getting into a bed. |

Logging

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
AFKManager-0.3.1.zip
檔案大小
28.9 KiB