EventScheduler
Enables server operators to schedule recurring Events.
模組介紹 作者原文
EventScheduler
Enables server operators to schedule recurring Events.
Installation
- Install BepInEx.
- Install HookDOTS.
- Install VampireCommandFramework.
- Extract EventScheduler.dll into (VRising folder)/BepInEx/plugins.
Scheduling an event
An Event is really just a series of chat commands to be executed on a schedule.
Events are set up in BepinEx/config/EventScheduler/events.jsonc
Example:
{
// Chat commands have to be executed by a user, so we specify which user
"executingAdmin": {
"steamId": 123456
},
// List of all events
"events": [
// an event to reset shards every 2 weeks
{
// after you've decided on an eventId, it shouldn't be changed
"eventId": "Bi-Weekly Shard Reset",
"schedule": {
// when the first run of the event should happen
"firstRun": "2069-12-15 20:00:00",
// how frequently the event should run
"frequency": "2 weeks",
// In case the event is overdue: allow running it late, but not too late.
// This could happen if the server was down/restarting when the event was supposed to run.
// If it's too late, the event will be skipped until the next valid time slot.
"overdueTolerance": "5 minutes",
},
"chatCommands": [
// a series of chat commands to be executed each time the event runs
".shards-reset",
".buff all rage 2h",
".buff all witch 2h",
]
},
// an event to give players a gift every hour
{
"eventId": "Hourly lumber gift",
"schedule": {
"firstRun": "2069-12-15 20:00:00",
"frequency": "1 hour",
"overdueTolerance": "1 minute",
},
"chatCommands": [
".giveToAll wood 9",
]
},
]
}
Configuration changes are automatically applied; no need to restart the server every time.
Note that all chat commands shown above are only examples. The actual commands available depend on which mods you have installed.
Frequency and overdueTolerance
The expected format is {integer} {unit}
Valid units are: weeks, days, hours, minutes, seconds
examples:
- 2 weeks
- 1 week
- 30 days
- 1 day
- 5 hours
- 1 hour
- 90 minutes
- 1 minute
- 30 seconds
- 1 second
Chat commands
-.testRunEvent "Hourly lumber gift"
- Do an immediate test run of the event with id "Hourly lumber gift"
Support
Join the modding community.
Post an issue on the GitHub repository.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: