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.
8ball
- Let players ask questions with a configurable 8-ball command.
- Randomly choose from admin-defined responses.
- Send answers globally or privately to the player.
- Control access with Takaro permissions.
Module details
- 8-Ball Command: Players can use a designated command (default:
8ball) to ask the Magic 8-Ball a question. - Random Responses: The module provides a list of configurable responses. When the command is used, the module selects a random response from this list and displays it to the player.
- Configurable Output: The module allows server administrators to choose whether the 8-Ball's response is sent as a global server message or as a private message (PM) to the player.
- Customizable Responses: The list of 8-Ball responses can be fully customized, allowing server administrators to tailor the module to their server's theme or language.
- Permission Control: Usage of the 8-Ball command can be restricted using a configurable permission.
- Configuration:
sendMessage: Choose whether the 8-Ball's response is sent as aserverMessage(to all players) or aplayerPM(private message to the player who used the command).responses: Edit the array of strings to customize the 8-Ball's possible answers. Ensure there is at least one response.
- Permissions: Assign the
MAGIC_8BALL_USEpermission to the player groups or individuals who should be able to use the8ballcommand. - In-Game Usage: Players use the
/8ballcommand (or the configured trigger) followed by their question. The 8-Ball's response will be displayed according to thesendMessageconfiguration.
- Ensure there is at least one response in the
responsesconfiguration to avoid errors. - Customize the responses to fit your server's style and language.
- Use the permission system to control who can use the command.
Components Overview
New Module: 8ball
NEWmy-command. New permission: MAGIC_8BALL_USE. New configuration options: sendMessage, responses.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)
sendMessage
Decide on sending it to the server globally or to the individual player
serverMessageresponses
Here you can edit the responses of the 8ball command.
"It is certain""Without a doubt"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 (1)
These commands can be executed by players in-game. Each command has a trigger word, optional arguments, and executes JavaScript code on the server.
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 (1)
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
MAGIC_8BALL_USE
MAGIC_8BALL_USEPermission KeyDescription
This permissions allows your players to use the Magic 8Ball
Permission Details
MAGIC_8BALL_USEAbout 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.







































