Redeem
Configurable reward system for servers, featuring exclusive code redemption.
模組介紹 作者原文
Redeem
Redeem is a configurable reward redemption system developed exclusively for Valheim dedicated servers.
Features
- Server-authoritative system — redemption data and validation are handled on the server.
- Code-based reward system — players can redeem item packages using unique codes.
Usage
- When the mod is first launched, it automatically creates the Redeem_data folder inside BepInEx/config, which stores all configuration and data files used by the system.
- The administrator defines item packages in packages.yml, which serve as the reference for all available rewards.
- New codes are manually added to code.insert.yml. When this file is saved, the system validates the entries and automatically moves valid codes to code.active.yml.
- The administrator must then provide a valid code to the player by any desired method, such as an event reward, purchase reward, manual distribution, or private message.
- Active codes in code.active.yml can be redeemed by players using the chat command /redeem.
- When a code is successfully redeemed, the server delivers the configured items directly to the player’s inventory.
- The used code is then removed from code.active.yml and recorded in code.claimed.yml, ensuring full history and traceability of all redemptions.
File Examples
Example package (packages.yml)
Packages:
- Id: starter
Items:
- Prefab: Coins, Amount: 500
- Prefab: Wood, Amount: 100
- Prefab: Stone, Amount: 100
- Id: vip_bundle
Items:
- Prefab: Coins, Amount: 5000
- Prefab: Bronze, Amount: 20
- Prefab: SwordIron, Amount: 1, Quality: 3
Example code (code.insert.yml or code.active.yml)
Codes:
- Code: ABCD-1234-START
Package: starter
- Code: ABCD-2345-START
Package: starter
- Code: ABCD-3456-START
Package: starter
- Code: VIP-ONLY-9999
Package: vip_bundle
- Code: VIP-ONLY-8888
Package: vip_bundle
- Code: VIP-ONLY-7777
Package: vip_bundle
Commands
| Command | Description |
|------------------|------------------------------------------------------|
| /redeem | Redeems the items associated with the provided code. |
Installation (manual)
- Place the Redeem.dll file into the BepInEx\plugins\ folder.
- On first launch, the mod will automatically create the configuration folder on the server only.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
前置依賴
下面這些內容需要先安裝,否則該模組不會生效:
denikson-BepInExPack_Valheim