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.
Module details
Roulette Module: Casino-Style Gambling for Your Game Server
Key Features
- Authentic Gameplay: Simple, realistic roulette with true-to-life odds and mechanics.
- Multiple Bet Types: Various betting options with different risk/reward ratios.
- Accurate Validation: Color and number validation matching a real roulette wheel.
- Statistics Tracking: Monitor your gambling performance over time.
- Configurable Settings: Adjustable house edge and betting limits.
- Optional Cooldown: Set time between spins to prevent excessive gambling.
- VIP Permissions: Special access for VIP players to higher betting limits.
- Admin Controls: Commands to view and reset player statistics.
How to Play
/roulette red 100- Bet 100 on any red number/roulette black 200- Bet 200 on any black number/roulette even 150- Bet 150 on even numbers/roulette odd 150- Bet 150 on odd numbers/roulette high 100- Bet 100 on high numbers (19-36)/roulette low 100- Bet 100 on low numbers (1-18)/roulette 17 200- Bet 200 specifically on number 17/roulette red17 300- Bet 300 specifically on red 17 (higher payout)/roulettestats- View your personal roulette statistics/rouletterules- Display roulette rules and payouts
Payouts
- Red/Black: 1:1
- Even/Odd: 1:1
- High/Low: 1:1
- Single Number: 35:1
- Color+Number: 70:1
Configuration Options
- Minimum bet amount
- Maximum bet amount
- House edge percentage
- Cooldown time between spins
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
rouletterules
Description
Function Implementation
rouletterules Function
JAVASCRIPTUsage Example
roulette
Description
Arguments (2)
betType
stringPosition 0""amount
numberPosition 1""Function Implementation
roulette 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.







































