ServerPasswordOnce

版本 v1.1.0·更新於 2026-10-01

The server asks a returning player for the password only when it changed.

模組介紹 作者原文

ServerPasswordOnce

🛟 Need help or found a bug? Get support at support.doodesch.de/serverpasswordonce.

Server mod: a player who already entered the current server password is not asked for it again.

What it does

  • A player who entered the current password once joins without the password window after that.
  • When you change the server password, every player must enter it once more.
  • The mod saves no password. For each player it saves the player id, a salted fingerprint of the password

and the time of the last join.

  • When you ban a player, the mod removes that player from the guest list.

Requirements

| Component | Version |

|---|---|

| Valheim dedicated server | 1.0.16 |

| BepInExPack_Valheim | 5.4.2333 |

The mod works on Steam servers and on servers started with -crossplay.

Installation

  • Install BepInExPack_Valheim on the server.
  • Put ServerPasswordOnce.dll into BepInEx/plugins/ServerPasswordOnce/ on the server.
  • Start the server with -password.

The server log then shows The server password is in force. If it shows

ServerPasswordOnce is not active, the same line gives the cause.

Admin command

Admins from adminlist.txt type the command in the game console. The game runs it on the server.

serverpasswordonce status mod state, backend, number of guests, path of the guest list

serverpasswordonce list all guests with their last join

serverpasswordonce forget remove one guest; they must enter the password again

serverpasswordonce forgetall remove all guests

serverpasswordonce reload read the guest list file again

status and list write to the server log, not to your game console. forget works only while

that player is online. For other players, use an id from list.

Guest list

serverpasswordonce.txt in the save folder of the server, next to adminlist.txt. One line per guest:

player id, password fingerprint, last join. On a crossplay server the platform id follows.

To remove a guest by hand, delete the line and run serverpasswordonce reload.

Crossplay servers

On a server started with -crossplay, the player id is the PlayFab player id of the connection. The

PlayFab relay server accepts a connection only with a login that belongs to that id.

The platform id (Steam_1234, Xbox_1234) is a value that the client sends. The mod does not use it to

skip the password. The mod saves it because adminlist.txt and bannedlist.txt use it.

  • list shows both ids. forget accepts each of them.
  • A guest list from a start without -crossplay does not apply with -crossplay, and the other way

around. After such a change, every player must enter the password once more.

  • Tested with Steam players. Xbox and PlayStation players use the same connection, but were not tested.

Configuration

BepInEx/config/DooDesch.ServerPasswordOnce.cfg on the server. Restart the server after a change.

| Option | Description | Default |

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

| General / Enabled | When off, every player must enter the password on every join. | true |

| General / LogJoins | Log a line for every join without the password window. The first join of a new guest is always logged. | true |

| Guests / ForgetAfterDays | Remove guests who did not join for this many days. 0 keeps them. | 0 |

| Guests / MaxGuests | Maximum number of guests. When the list is full, the guest with the oldest last join is removed. 0 sets no limit. | 0 |

| Risk / AllowUntrustedBackends | Skip the password on other network backends too, where nothing verifies the player id. No effect on Steam servers and crossplay servers. | false |

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
ServerPasswordOnce-1.1.0.zip
檔案大小
102.1 KiB