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

by Limon
Add casino-style Roulette betting to a Takaro game server economy. Roulette lets players place currency bets, play against configurable odds, and track gambling statistics.
Use this module to:
  • 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.
Good fit for servers that want economy minigames, casino events, currency sinks, and permissioned betting controls managed through Takaro.

Module details

Roulette Module: Casino-Style Gambling for Your Game Server

A realistic casino-style roulette game where players can bet currency and win based on where the ball lands.

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
All payouts are subject to the configured house edge.

Configuration Options

  • Minimum bet amount
  • Maximum bet amount
  • House edge percentage
  • Cooldown time between spins
This module provides a fun and engaging way for players to gamble their in-game currency with realistic odds and authentic roulette gameplay.
communityTakaro v0.0.21
(4 versions available)

Components Overview

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

New Module: Roulette

NEW
August 6, 2025
Updated to version latest. Added 4 commands: roulettestats, 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)

minimumBetnumber
minimumBet

The minimum amount a player can bet on a single spin.

Default: 10
maximumBetnumber
maximumBet

The maximum amount a player can bet on a single spin.

Default: 100
houseEdgenumber
houseEdge

Percentage of winnings the house takes as profit (5 = 5%).

Default: 5

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.

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.

roulettestats

/roulettestatsTrigger Command

Description

Shows your roulette statistics

Function Implementation

roulettestats Function

JAVASCRIPT

Usage Example

Player types: /roulettestats

roulettereset

/rouletteresetTrigger Command

Description

Reset a player's roulette statistics (admin only).

Arguments (1)

player
stringPosition 0
Help: Player whose stats to reset
Default: ""

Function Implementation

roulettereset Function

JAVASCRIPT

Usage Example

Player types: /roulettereset <player>

rouletterules

/rouletterulesTrigger Command

Description

Shows the rules and payouts for roulette.

Function Implementation

rouletterules Function

JAVASCRIPT

Usage Example

Player types: /rouletterules

roulette

/rouletteTrigger Command

Description

Place a bet and spin the roulette wheel.

Arguments (2)

betType
stringPosition 0
Help: Type of bet (red, black, even, odd, high, low) or a number 0-36
Default: ""
amount
numberPosition 1
Help: Amount to bet
Default: ""

Function Implementation

roulette Function

JAVASCRIPT

Usage Example

Player types: /roulette <betType> <amount>

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

3 permissions

Roulette Admin

ROULETTE_ADMINPermission Key
Description

Allows resetting player statistics and other administrative functions.

Permission Details
Full Key:ROULETTE_ADMIN
Can Have Count:No
Category:General

Higher Betting Limits

ROULETTE_HIGHER_LIMITSPermission KeyCountable
Description

Allows the player to exceed the normal maximum bet. Count is multiplier for max bet.

Permission Details
Full Key:ROULETTE_HIGHER_LIMITS
Can Have Count:Yes
Category:General
Countable 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 Key
Description

Allows the player to place bets and play roulette.

Permission Details
Full Key:ROULETTE_PLAY
Can Have Count:No
Category:General

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