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.
Roulette
- Let players bet on roulette outcomes with in-game currency.
- Support multiple bet types and configurable betting limits.
- Apply optional cooldowns to control pacing.
- Track player gambling stats and admin resets.
- Use VIP-style permissions for higher betting limits where configured.
Components Overview
New Module: Roulette
NEWroulettestats, roulettereset, rouletterules, roulette. New permissions: ROULETTE_PLAY, ROULETTE_HIGHER_LIMITS, ROULETTE_ADMIN. New configuration options: minimumBet, maximumBet, houseEdge.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 (3)
minimumBet
The minimum amount a player can bet on a single spin.
10maximumBet
The maximum amount a player can bet on a single spin.
100houseEdge
Percentage of winnings the house takes as profit (5 = 5%).
5UI 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.
Commands (4)
These commands can be executed by players in-game. Each command has a trigger word, optional arguments, and executes JavaScript code on the server.
roulettereset
Description
Arguments (1)
player
stringPosition 0""Function Implementation
roulettereset Function
JAVASCRIPTUsage Example
roulette
Description
Arguments (2)
betType
stringPosition 0""amount
numberPosition 1""Function Implementation
roulette Function
JAVASCRIPTUsage Example
rouletterules
Description
Function Implementation
rouletterules Function
JAVASCRIPTUsage Example
About Module Commands
Commands allow players to interact with your module through chat. Each command has a trigger word that players type (prefixed with /), optional arguments for parameters, and a JavaScript function that executes when the command is used. Arguments are automatically validated and passed to the function.
Permissions (3)
These permissions control who can access different features of this module. Administrators can assign these permissions to roles, allowing fine-grained access control.
General Permissions
Roulette Admin
ROULETTE_ADMINPermission KeyDescription
Allows resetting player statistics and other administrative functions.
Permission Details
ROULETTE_ADMINHigher Betting Limits
ROULETTE_HIGHER_LIMITSPermission KeyCountableDescription
Allows the player to exceed the normal maximum bet. Count is multiplier for max bet.
Permission Details
ROULETTE_HIGHER_LIMITSCountable Permission
This permission supports numeric values/levels. For example, you could grant someone "10" of this permission to limit their usage or set permission levels.
Play Roulette
ROULETTE_PLAYPermission KeyDescription
Allows the player to place bets and play roulette.
Permission Details
ROULETTE_PLAYAbout Module Permissions
Permissions control access to module features and functionality. Each permission has a unique key for identification, a friendly name for display, and a description explaining what it allows. Some permissions are countable, meaning they can have numeric values or limits assigned. Administrators assign these permissions to user roles to control who can use different module features.







































