LetMeSleep

版本 v1.0.5·更新於 2026-09-12

Skip the night with only some players in bed.

模組介紹 作者原文

Let Me Sleep!

A simple server-side mod that allows sleep when only some players are in bed.

How to install

  • Use the Mod Manager
  • Only the server needs this mod installed!

Configuration

When running this mod for the first time, `blockchaaain.LetMeSleep.cfg will be generated within \BepInEx\config`

Ratio (`ratio = 0.5`)

This ratio is the fraction of online players that must "vote" to sleep. Configurable between 1% (0.01) and 100% (1.0).

Message (`showMessage = true`)

When enabled, the server shows a large center-screen HUD message to all players whenever anyone "votes" to sleep. The message displays the current number of players in bed.

Older releases posted this as a chat shout from "Server". Valheim no longer shows chat that does not come from a player, so the vote is shown on screen instead.

Requirements

  • BepInExPack for Valheim installed on the server.

Credits

SkipSleep - Original code for counting the number of players in bed.

JotunnModStub - Mod template.

LetMeSleep attempts to improve upon SkipSleep

  • Compatible with Valheim 1.0!
  • Various updates to Valheim have broken older mods.
  • Server message is sent to all players only once when someone gets in bed.
  • Does not continue to send messages each time Valheim checks sleep conditions.
  • Server message is not duplicated for each player online.
  • Mod continues to work even if the chat message fails (and will only issue one error message).
  • Source includes everything needed to build the project.
  • Intends to make the code more concise and readable.

Thanks

Ancastasia - Hosting modded Valheim.

radicalpi - Testing the mod.

Changelog

  • 1.0.5:
  • Compatible with Valheim 1.0
  • Show the sleep vote via HUD message
  • 1.0.4:
  • Modify for Hildir's Request
  • 1.0.3:
  • Catch exceptions while sending messages.
  • 1.0.2:
  • Modify for Valheim 0.214
  • 1.0.1:
  • Limit ratio value between 0.01 and 1.0.
  • Upload.
  • 1.0.0:
  • Initial release

Source

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
LetMeSleep-1.0.5.zip
檔案大小
55.7 KiB