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
- Send configurable horde-night warnings.
- Reduce surprise downtime or player frustration around scheduled events.
- Show how Takaro can automate recurring server announcements.
Components Overview
New Module: HordeNightWarnings
NEWBM_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
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
0StartTime2
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.
17SoftWarningText
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."
Blood moon tonight. Please log out before 17:00 if you're not going to fight the horde.SeriousWarningText
Text for 'serious' warning message. e.g. "[FF1111]Blood moon soon![-] Log out NOW if you're not going to fight the horde."
Blood moon soon! Log out NOW if you're not going to fight the horde.discordChannel
Specify the target discord Channel ID for alerts
debugChannel
Specify the target discord Channel ID for debug messages
bloodMoonOverText
Text to display when bloodmoon ends.
Blood moon is over!enableDebugMessages
If enabled, the script will send debug messages to the specified debugChannel
falseUI 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
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
Schedule Details
Cron Expression
Human-Readable Schedule
Every 10 minutes
Function Implementation
horde_night_warning Function
JAVASCRIPTCron Expression Format
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.







































