Takaro module library

Takaro Modules

Takaro is a game server management platform for running, automating, and moderating multiplayer communities. These modules install into Takaro to add server automation, Discord workflows, economy systems, and moderation tools.

HordeNightWarnings

by TrevorJD
Warn players before 7 Days to Die blood moon or horde night events so they can prepare or log out. This module supports server communication and event readiness with automated recurring messages.
Use this module to:
  • Send configurable horde-night warnings.
  • Reduce surprise downtime or player frustration around scheduled events.
  • Show how Takaro can automate recurring server announcements.
communityTakaro v0.0.24

Components Overview

1
config
0
commands
1
hooks
1
Cron Jobs
0
functions
0
permissions

New Module: HordeNightWarnings

NEW
August 6, 2025
Updated to version latest. Added 1 hook: BM_is_over (log). Added 1 scheduled task: horde_night_warning. New configuration options: StartTime1, StartTime2, SoftWarningText, SeriousWarningText, discordChannel, debugChannel, bloodMoonOverText, enableDebugMessages.

Configuration

Configure this module using the schemas below. The JSON schema defines the data structure, while the UI schema customizes how the configuration form is displayed.

Configuration Schema

Configuration Properties (8)

StartTime1*number
StartTime1

In-game time that 'soft' warnings should begin. Hour only. e.g. 9 or 15 Default: 0 - Will play all day leading up to blood moon

Default: 0
Constraints: max: 22
StartTime2*number
StartTime2

In-game time that 'serious' warnings should begin. Hour only. e.g. 9 or 15 Default: 17 - Will broadcast from 5pm in-game. If everyone logs out by 5pm, BM fighters will have 5 in-game hours to do last minute prep.

Default: 17
Constraints: max: 22
SoftWarningText*string
SoftWarningText

Text for 'soft' warning message. e.g. "Blood moon tonight. Please log out before 17:00 if you're not going to fight the horde."

Default: Blood moon tonight. Please log out before 17:00 if you're not going to fight the horde.
SeriousWarningText*string
SeriousWarningText

Text for 'serious' warning message. e.g. "[FF1111]Blood moon soon![-] Log out NOW if you're not going to fight the horde."

Default: Blood moon soon! Log out NOW if you're not going to fight the horde.
discordChannelstring
discordChannel

Specify the target discord Channel ID for alerts

Default:
debugChannelstring
debugChannel

Specify the target discord Channel ID for debug messages

Default:
bloodMoonOverText*string
bloodMoonOverText

Text to display when bloodmoon ends.

Default: Blood moon is over!
enableDebugMessagesboolean
enableDebugMessages

If enabled, the script will send debug messages to the specified debugChannel

Default: false

UI Schema

No UI schema defined. Configuration form will use default rendering.

About Configuration Schemas

The Configuration Schema defines the structure and validation rules for module settings. The UI Schema customizes how the configuration form is displayed in the Takaro interface, including field ordering, labels, and input types.

Hooks (1)

These hooks respond to various game events automatically. Each hook executes JavaScript code when its specific event type occurs, allowing modules to react to player actions, system changes, and more.

System Events

1 hook

BM_is_over

logEvent Type
Function Implementation

BM_is_over Hook Function

JAVASCRIPT
Event Details
Event Type:log
Trigger:Automatic
Category:System Events

About Module Hooks

Hooks allow your module to respond automatically to game events like player actions, server status changes, and chat messages. Each hook has an event type that determines when it triggers, optional regex patterns for filtering specific events, and a JavaScript function that executes when the conditions are met. Hooks are grouped by category for better organization.

Scheduled Jobs (1)

These jobs run automatically on a schedule defined by cron expressions. Each job executes JavaScript code at specific times or intervals.

horde_night_warning

*/10 * * * *Schedule

Schedule Details

Cron Expression
*/10 * * * *
Human-Readable Schedule

Every 10 minutes

Function Implementation

horde_night_warning Function

JAVASCRIPT

Cron Expression Format

minute hour day-of-month month day-of-week

Each field can contain numbers, ranges (1-5), lists (1,3,5), or wildcards (*). Use */n for intervals (e.g., */5 for every 5 units).

About Scheduled Jobs

Cron jobs allow your module to execute code automatically on a schedule. Each job has a cron expression that defines when it runs, and a JavaScript function that executes at those times. Jobs run server-side and can perform maintenance tasks, send notifications, or update game state automatically.