Source-checkedQuality of life & UI

NoAFKRaids

by Dumba · for Valheim

Prevents raids from starting near players that are AFK.

4.4KDownloads
10 mo agoLast updated
BepInExLoaders
ThunderstoreSource

About NoAFKRaids

From Thunderstore

Prevents raids from starting near players that are AFK.

No AFK Raids

> Version 2.0.0 - Complete rewrite! Now extremely lightweight. If upgrading from 1.x, you may want to delete your server's old config file.

Prevents raids from occurring within 200 meters (configurable) of an AFK player.

  • Players are considered AFK after three minutes of inactivity (configurable)
  • Crossplay compatible
  • ServerSync: Config syncs from server to clients automatically
  • Uses Valheim's native event system for optimal reliability

Installation

Place NoAFKRaids.dll in BepInEx/plugins/

| Scenario | Where to Install | |----------|------------------| | Singleplayer | Your game only | | Self-hosted multiplayer | Host + all clients | | Dedicated server | Server + all clients |

Note: Players without the mod installed won't have their AFK status tracked and won't be protected from raids.


ServerSync

This mod uses ServerSync to synchronize configuration from the server to clients. When ServerConfigLocked = true (default), the server's settings override client settings for gameplay options. Logging preferences remain client-side.


Configuration Options

Config file: BepInEx/config/dumba.noafkraids.cfg

AFK Detection

| Setting | Default | Description | |---------|---------|-------------| | ServerConfigLocked | true | Server settings override client settings | | AFKMinutes | 3 | Minutes without movement before considered AFK | | MovementThreshold | 0.1 | Minimum movement distance to be considered active | | UpdateInterval | 10 | Seconds between AFK status updates |

Protection

| Setting | Default | Description | |---------|---------|-------------| | AFKProtectionRadius | 200 | Distance (meters) around AFK players where raids are blocked | | UseEventRangeAsProtection | false | Use the game's native event range (96m) instead of custom radius | | AllowForcedEvents | true | Allow boss fights and forced events to proceed (don't block these) |

Logging (Client-Side Only)

| Setting | Default | Description | |---------|---------|-------------| | LogRaidDecisions | true | Log when raids are blocked or allowed | | LogAFKStateChanges | false | Log when players go AFK or become active | | DebugMode | false | Enable verbose debugging output |


How It Works

The mod integrates directly with the event system at the optimal point where raid positions are determined. When a raid attempts to start:

  1. The game selects a raid type and target position
  2. NoAFKRaids checks if any AFK players are within the protection radius
  3. If an AFK player is nearby, the raid is prevented before it begins
  4. Active players can still experience raids normally

Why Client-Side AFK Detection?

For better performance on large servers. Server simply maintains a dictionary of AFK states and checks distances when raids occur (rare event).

| Task | Who Does It | |------|-------------| | Position monitoring & AFK timers | Each client (distributed load) | | State change notification | Client → Server via RPC (infrequent) | | Raid blocking decision | Server (only when raids trigger) |

Contact

Discord - Dumba (dumba7435)

Highlights

From source data

Loaders

Runs on BepInEx.

Footprint

Rated a light load on a server.

Dependencies

Needs 1 other project installed alongside it.

NoAFKRaids on Nxeon

From our catalogue
One-click install
Supported on Nxeon Valheim servers, for BepInEx servers. We download it from Thunderstore, place it, and restart the server.
Server side
Optional on the server
Server type needed
BepInEx
Server load
light
Smallest plan we suggest
Valheim — 4 GB (4 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
2.0.0, released 2026-01-11

Game versions by loader

LoaderGame versionsNewest
BepInEx

From 3 recorded builds of NoAFKRaids.

Recent builds

BuildReleasedGame versionsLoaders
2.0.02026-01-11n/aBepInEx
1.0.12026-01-07n/aBepInEx
1.0.02025-12-30n/aBepInEx

Dependencies

Declared by the newest build that lists any. Required ones are installed with it on one-click installs.

Run NoAFKRaids on a Valheim server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Thunderstore as “Tweaks”

Quality of life & UI

Small conveniences, tweaks and interface improvements players notice straight away.

Works on a server

From source side support

Thunderstore lists server-side support for NoAFKRaids as optional: it can run on a server, but isn’t required there.

Compatibility

Game
Valheim
Loaders
BepInEx
Runs on
Serveroptional on the server
Requires
One-click install needs a BepInEx server. 1 other project installed alongside it.

Verified at the source

  • ✓ThunderstoreOfficial listing, checked 2026-10-02Open ↗
  • ✓AuthorDumba, as published on Thunderstore
  • ✓LicenseNot published by the sourceFree

NoAFKRaids, answered

Generated from the mod’s own source data.

Do my players need to install NoAFKRaids?

Thunderstore lists server-side support for NoAFKRaids as optional: it can run on a server, but isn’t required there.

Which loaders does it support?

BepInEx.

Is it free?

Yes. NoAFKRaids is free to download from Thunderstore.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run NoAFKRaids on a Valheim server.

Deploy in about a minute from $9.99 a month, then add NoAFKRaids in one click.