SimpleAccessControl

版本 v1.0.9·更新於 2026-09-21

Configurable public/private/whitelist access for doors, gates, storage, beds, crafting/cooking, cartography, carts and ships. TargetPortal-safe.

模組介紹 作者原文

Simple Access Control

Lightweight access control for player-built doors/gates, containers, beds, crafting stations, cooking stations, cartography tables, carts and ships in Valheim 1.0.

Designed for small multiplayer servers that want object-level privacy without wards, guilds or group systems.

Behaviour

  • Player-built supported objects are Public by default.
  • The piece creator is the permanent owner for access-management purposes.
  • Owner can switch an individual object between:
  • Public — everyone may use it unless explicitly denied.
  • Private — only the owner may use it; player exceptions do not grant access.
  • Whitelist — owner plus explicitly allowed players may use it.
  • Per-player rules:
  • Default — follow the object's Public/Private/Whitelist mode.
  • Allow — always allow this player.
  • Deny — always deny this player.
  • Public applies explicit Deny rules; Private remains owner-only; Whitelist applies Deny > Allow > denied by default.
  • The owner is always allowed.
  • A fully Public object with no effective restriction keeps vanilla dismantling and damage rules: another player can destroy it.
  • As soon as an effective restriction exists (Private/Whitelist mode, or a Public-mode Deny), dismantling and player damage become owner/admin-only.
  • Private and Whitelist objects are protected: only the owner/admin can destroy them.
  • Crafting-station coverage includes the workbench, forge, cauldron and mead kettle when the prefab uses Valheim's CraftingStation component.
  • Cooking-station privacy blocks both adding food/fuel and collecting cooked items.
  • Cartography-table privacy independently guards both controls: reading the shared map and depositing the player's discoveries.
  • Cart privacy covers its storage and attaching/detaching through the cart interaction.
  • Ship privacy covers onboard storage and the helm/ship controls. It cannot physically prevent a player from jumping aboard.
  • Creature and environmental damage remain vanilla; this mod blocks unauthorized player destruction, not world simulation.
  • World-spawned chests/doors and pieces with no player creator are ignored.

Usage

  • Look at a supported player-built object or one of its interaction controls.
  • Hold Left Shift and press Valheim's Use key (E, F, etc.) to cycle Public → Private → Whitelist → Public without opening a window.
  • Hold Left Shift + A when Valheim is in French, or Left Shift + Q in every other language, to open the detailed Access Control window.
  • Select Public / Private / Whitelist and set individual players to Default / Allow / Deny.
  • In Whitelist mode, set every permitted player to Allow.
  • Changes are stored in the object's ZDO and therefore persist with the world.

The player to whitelist must be connected when first added. Once configured, that player remains listed while offline. The panel now displays an explicit whitelist summary and a warning when no other player is currently detectable.

Claimed beds are a special case: when AssignedBedsForcePrivate = true, the sleeper assigned by Valheim becomes the bed's owner. The bed is forced Private, ignores whitelist exceptions, and only that sleeper can use or destroy it; server admins retain their override.

Installation

Gale or another mod manager (recommended)

  • Search for SimpleAccessControl by Zephyrfit in your mod manager.
  • Install it in the Valheim profile used to join the server.
  • Install the same package version on the dedicated server and every client.
  • Restart Valheim and the server after installation or configuration changes.

The mod manager downloads the precompiled plugin and installs the declared BepInEx dependency automatically. Normal players do not need the.NET SDK, the source code or the Windows build installer.

Manual installation

  • Install BepInExPack Valheim 5.4.2350 or later.
  • Download the package and extract it.
  • Copy BepInEx/plugins/SimpleAccessControl/SimpleAccessControl.dll into the matching BepInEx/plugins/Simp

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
SimpleAccessControl-1.0.9.zip
檔案大小
164.4 KiB