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.

dynamicCommands

by Limon
for 7 Days to Die
Create configurable game server commands from Takaro module settings. This module helps admins turn repeated console actions into permissioned player or staff commands without editing module code for each new command.
Use this module to:
  • Define command triggers, arguments, permissions, and game commands.
  • Sync configured commands automatically on a schedule.
  • Build server-specific command workflows for admin or player use.
communityTakaro main

Components Overview

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

New Module: dynamicCommands

NEW
December 12, 2025
Updated to version latest. Added 1 scheduled task: commandGenerator. New configuration options: validateOnlinePlayers, commands.

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 (2)

validateOnlinePlayersboolean

Global setting: When enabled, validates player-type arguments against online players before executing. Can be overridden per-command.

Default: true
commandsarray
Dynamic Commands

List of commands to create dynamically

Default: [] (empty array)

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.

Scheduled Jobs (1)

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

commandGenerator

*/15 * * * *Schedule

Description

Generates Takaro commands from userConfig.commands. Runs every 15 minutes to sync configuration with actual commands. Uses hash-based change detection to skip unnecessary updates.

Schedule Details

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

Every 15 minutes

Function Implementation

commandGenerator 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.