grant-buff
Description
Arguments (2)
player
playerPosition 0NonebuffName
stringPosition 1NoneKick: Removes the player from the server.
* Ban: Temporarily bans the player.PunishmentType: Choose the punishment to apply (kick or ban). Default: kick.Ban Duration: If PunishmentType is ban, set the duration of the ban (in milliseconds).PunishmentMessage: Customize the message shown to the player when they are kicked or banned. Use {days} as a placeholder for the number of days since the player's last VAC ban and {threshold} for the configured DaysThreshold.DaysThreshold: Set the number of days. Players with a VAC ban within this many days will be punished.VAC_BAN_IMMUNITY permission to players who should be exempt from VAC ban checks.DaysThreshold to balance enforcement with player leniency.VAC_BAN_IMMUNITY permission judiciously.PunishmentMessage to provide clear and informative reasons for kicks or bans./fund <amount> to contribute their own currency toward the active goal./fundstatus shows the current total, target, progress percentage, and round count./fundhistory shows total completions and the last player who pushed the fund over the line.koji-paper-1. For this capture the game-server command prefix was temporarily set to ! so Mineflayer sends normal chat messages instead of Minecraft slash commands. On a normal server the same module commands use whatever command prefix the server has configured.Bot1_fund90dj runs !fundstatus and sees 0/50.Bot1_fund90dj contributes 20 currency with !fund 20.Bot1_pool90dj runs !fundstatus and sees 20/50 (40%).Bot1_pool90dj contributes 35 currency with !fund 35.50 threshold, broadcasts the unlock message, executes the configured completion command, and starts round #1.!fundhistory confirms 1 completion total and records Bot1_pool90dj as the player who completed the round.
/fund <amount> | Contribute currency to the active community fund. |
| /fundstatus | Show current total, target, progress, and round count. |
| /fundhistory | Show completion count and the last completed round. |COMMUNITY_FUND_CONTRIBUTE | Allows a player to contribute currency with /fund <amount>. |
| COMMUNITY_FUND_VIEW_HISTORY | Allows a player to view /fundhistory. |/fundstatus is intentionally public and does not require a permission.fundThreshold: target amount that completes a round.minimumContribution: minimum currency amount a player can contribute per command.completionMessage: broadcast message sent when the threshold is reached. Supports {threshold}.completionCommands: raw game-server commands executed after completion, for rewards or server events.broadcastContributions: whether each contribution is announced globally.koji-paper-1) with real Mineflayer players and live Takaro chat events. The run imported and installed the module, assigned the contribution/history permissions, granted test currency, sent the commands through real bot chat, and verified persisted variables after completion.fundThreshold: 50minimumContribution: 5completionMessage: Community Fund reached {threshold}! Server-wide bonus unlocked!completionCommands: say Community Fund complete: reward unlockedbroadcastContributions: true20 currency from Bot1_fund90dj35 currency from Bot1_pool90dj5051#1, 2026-04-27, by Bot1_pool90dj


string | Free text input (item names, messages) |
| number | Numeric values (coordinates, amounts) |
| player | Player selector, validates against online players |
| self | Auto-filled with the executing player (not prompted) |self) - auto-fills with your name |
| Argument 2 | target (type: player) - who to teleport to |/teleportto Steve → executes teleportplayer YourName Stevestring) |
| Argument 2 | amount (type: number, default: 1) |/give gunPistol 5 → executes giveself gunPistol 5ADMIN_TP (only players with this permission can use it) |
| Arguments | target (player), x (number), y (number), z (number) |.gameId, .name, or .steamId. Self-type arguments auto-fill with the executing player's data.cronJobGenerator cronjob automatically checks for and adapts to changes in the user configuration. This ensures that any modifications to commands or schedules are applied dynamically.cronJobGenerator cronjob automatically checks for and adapts to changes in the user configuration. This ensures that any modifications to commands or schedules are applied dynamically./refcode to generate or view a shareable code./referral <code> during the configured referral window./refstats and /reftop make the program visible to players.koji-paper-1. For this sandbox capture the game-server command prefix was temporarily set to ! so Mineflayer sends normal chat messages instead of Minecraft slash commands. On a normal server the same module commands use whatever command prefix the server has configured.Bot1_rafo2g0 runs !refcode and receives referral code N4A46Q.Bot1_rabo2g0 runs !referral N4A46Q.17 currency welcome bonus.123 currency.!refstats shows the referrer has 1 paid referral and 123 currency earned.!refstats for the referee shows they were referred by Bot1_rafo2g0.!reftop shows the referrer at the top of the leaderboard.
/refcode | Generate or display the player's referral code. |
| /referral <code> | Claim a referral code from the player who invited them. |
| /refstats | Show personal referral stats, rewards, and referral status. |
| /reftop | Show the top referrers by paid referral count. |/reflink <referee> <referrer> | Force-create a paid referral link and pay rewards. |
| /refunlink <referee> | Remove a referral link and roll back tracked stats where possible. |

prizeIsCurrency: pay referrers currency when enabled; use item rewards when disabled.referrerCurrencyReward: currency paid to the referrer after the referee qualifies.refereeCurrencyReward: immediate welcome currency bonus paid to the referred player.items: item prize pool used when prizeIsCurrency is false.playtimeThresholdMinutes: minutes the referee must play before the referrer is paid.referralWindowHours: how long after first connect a player can still claim a referral code.maxReferralsPerDay: daily cap for successful referrals a player can earn.maxReferralsLifetime: lifetime cap for paid referrals a player can earn.enabled, cronjobs (reset-daily-counters, sweep-pending-referrals), hook (on-player-disconnect), and commands (referral, reftop, refstats, refunlink, refcode, reflink).koji-paper-1). The run imported and installed the module, assigned REFERRAL_USE, generated a referral code from live bot chat, claimed it from a second player through live bot chat, ran the payout sweep, and verified /refstats + /reftop in the dashboard chat.N4A46Qpaid17 currency123 currencyreferralsTotal: 1referralsPaid: 1referralsRejected: 0currencyEarned: 123





8ball) to ask the Magic 8-Ball a question.sendMessage: Choose whether the 8-Ball's response is sent as a serverMessage (to all players) or a playerPM (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.MAGIC_8BALL_USE permission to the player groups or individuals who should be able to use the 8ball command./8ball command (or the configured trigger) followed by their question. The 8-Ball's response will be displayed according to the sendMessage configuration.responses configuration to avoid errors.



/bjhit commandmaxWrongGuesses: Set the number of incorrect guesses allowed before the game ends.minWordLength and maxWordLength: Define valid word length parameters.entryFee: Cost for players to join a game.hostingFee: Cost to start a new game.guessPrice: Optional cost per letter guess.winReward: Currency awarded to successful players.hostReward: Currency awarded to hosts when no player solves the puzzle.gameTimeout: Maximum duration a game can run./hangmanstart [word]: Create a new game or start a waiting game./hangmanjoin: Join an existing game that hasn't started./hangmanguess [letter/word]: Make a guess during an active game./hangmanstatus: Check the current state of the game./hangmanreveal: Reveal the answer and end the game (host/admin only)./hangmancancel: Cancel the current game (host/admin only).HANGMAN_HOST: Allows players to create and host games.HANGMAN_PLAY: Allows players to join games and make guesses.HANGMAN_ADMIN: Grants administrative control over all games./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
/slots [amount] - Place a bet and spin the slot machine/slotsstats - View your personal gambling statistics/slotsrules - Check payouts, rules and betting information/slotsreset [player] - Admin command to reset player statistics


minimumBet: Lowest possible wager amountmaximumBet: Highest possible wager amounthouseEdge: Percentage profit margin for the serverSLOTS_PLAY: Basic permission to use the slot machineSLOTS_HIGHER_LIMITS: VIP permission allowing higher maximum betsSLOTS_ADMIN: Administrative access to reset stats and manage the modulehttps://your-takaro.com/settings/roles/743b9623-ad09-4cf2-86c0-3d7faed57a88/roles/)743b9623-ad09-4cf2-86c0-3d7faed57a88






/markets [industry] - View all stocks or filter by industry/stockinfo [ticker] - Get detailed information about a specific stock/buystock <ticker> <amount> - Purchase shares of a stock/sellstock <ticker> <amount> - Sell shares from your portfolio/stockportfolio - View your current holdings and performance/triggerevent [event] - Admin command to trigger specific market eventsbuffplayer PlayerName BuffName for online players. It also includes a permission-gated admin command, /grantbuff <player> <buffName>, so staff can manually test or grant a buff without waiting for the schedule.
grant-playtime-rewards cronjob finds online players and grants one random configured reward to each player.buffCommandTemplate defaults to buffplayer {playerName} {buffName}, with placeholders for {playerName}, {playerId}, {gameId}, and {buffName}./grantbuff <player> <buffName> is guarded by PLAYTIME_BUFF_ADMIN for manual buff grants.{playerName}, {buffName}, {rewardName}, and {amount}.{ "buffCommandTemplate": "buffplayer {playerName} {buffName}", "buffRewards": [ { "buffName": "WellFed", "weight": 2, "enabled": true }, { "buffName": "MegaCrush", "weight": 1, "enabled": true } ], "commandRewards": [ { "name": "Ammo bundle", "command": "give {playerName} ammo762mmBulletBall 30", "weight": 1 } ], "currencyRewards": [ { "name": "Pocket money", "amount": 25, "weight": 1 } ] }
/grantbuff <player> <buffName> | Manually grant a buff to a player. Requires PLAYTIME_BUFF_ADMIN. |PLAYTIME_BUFF_ADMIN | Allows staff to use /grantbuff for manual grants and testing. |buffCommandTemplate: Console command template for buff grants. Defaults to buffplayer {playerName} {buffName}.buffRewards: Weighted list of buff names eligible for the hourly reward cycle.commandRewards: Weighted list of generic console commands for item, ammo, food, or custom rewards.currencyRewards: Weighted list of Takaro currency grants.announceRewards: Toggle broadcast messages for reward grants.defaultRewardMessage: Fallback announcement when a reward does not define its own message.koji-paper-1 using a real Mineflayer player, Bot1_BuffTester.buffplayer command, the test used a Minecraft-safe template: say [PlaytimeBuff] {playerName} received {buffName}. The module still exercised the important Takaro path: online player lookup, player-name hydration, command template rendering, game-server command execution, announcement sending, and Takaro currency grants.grant-playtime-rewards found Bot1_BuffTester online.say [PlaytimeBuff] Bot1_BuffTester received WellFed with 200 OK from the game-server command API.Bot1_BuffTester got the WellFed buff reward.add-currency with 25 and emitted a currency-added event.success: true and granted 1 reward(s) to 1 online player(s).currencyReward: Amount of currency given each time the cronjob runs (default: 10)PLAYTIME_CURRENCY_OVERRIDE: Override currency amount for specific players/roles (uses count value)

/playtime command lets players check their current session time, server playtime, and community-wide playtime statistics.
rewardInterval: Set how frequently rewards are given (should match cronjob schedule)baseReward: Amount of currency to award each intervalpossibleItems: List of items that can be randomly awardeditemChance: Percentage chance (1-100) to receive an itemrewardMessage: Customize notification with placeholders {minutes}, {currency}, {item}PLAYTIME_REWARD_OVERRIDE: Customize currency rewards for specific rolesPLAYTIME_ITEM_CHANCE_OVERRIDE: Modify item drop chances for specific roles







/markets [industry] - View all stocks or filter by industry/stockinfo [ticker] - Get detailed information about a specific stock/buystock <ticker> <amount> - Purchase shares of a stock/sellstock <ticker> <amount> - Sell shares from your portfolio/stockportfolio - View your current holdings and performance/triggerevent [event] - Admin command to trigger specific market events
Name; Odds entries. The default setup uses zombies, but the labels and entrants are fully configurable./racebet <racer> <amount> to place or replace their bet for the next race./startrace.
/racers | Show configured racers, odds, next race, and bet range. |
| /racebet <racer> <amount> | Place or replace a bet for the next race. Requires RACING_BET. |
| /myracebets | Show your active bet and potential winnings. |
| /nextrace | Show when the next race starts and whether you have a bet. |
| /lastrace | Show the previous race winner, standings, and your result. |
| /racestats | Show your personal race stats. |
| /raceleaderboard | Show top bettors by net winnings. |
| /startrace | Admin-only manual race trigger. Requires RACING_ADMIN. |RACING_BET | Allows a player to place race bets. |
| RACING_ADMIN | Allows a player to manually start races with /startrace. |minBet: Minimum currency amount for a bet.maxBet: Maximum currency amount for a bet.raceName: Display name used in messages, e.g. Zombie Race or Paper Horse Derby.racerTypeLabel: Singular label used in command help, e.g. zombie or horse.racerTypePluralLabel: Plural label used in output, e.g. zombies or horses.entrants: List of racers in Name; Odds format.{ "minBet": 10, "maxBet": 250, "raceName": "Paper Horse Derby", "racerTypeLabel": "horse", "racerTypePluralLabel": "horses", "entrants": ["Comet; 2", "Thunder; 3", "Pickle; 4", "Mango; 5"] }



koji-paper-1 with a real Mineflayer player, Bot1_RaceTester.koji-paper-1.Paper Horse Derby with custom horse labels and entrants.Bot1_RaceTester and confirmed the player was online in both Minecraft and Takaro.RACING_BET and RACING_ADMIN to the player for the test./racers, /racebet Comet 50, /myracebets, /nextrace, /startrace, /lastrace, and /racestats through Takaro's command trigger path.zombie_racing_state_v1, completed race #1, advanced to race #2, and persisted player stats in zombie_racing_stats_v1.Bot1_RaceTester wagered 50 on Comet at 2:1 odds.Thunder.Thunder, Pickle, Mango, Comet.1 bet, 50 wagered, 0 wins, 1 loss, favorite racer Comet.

/ban) from cluttering your Discord.

sendPlayerConnected: Enable player connect notificationssendPlayerDisconnected: Enable player disconnect notificationsonlyGlobalChat: Restrict to global chat only (can be fine-tuned below)includePartyChat: Include party/team chat in Discord (overrides onlyGlobalChat restriction)includeFriendsChat: Include friends chat in Discord (overrides onlyGlobalChat restriction)filterCommands: Filter out in-game command messagesfilterSystemMessages: Filter out system messagesuseMonitoring: Enable a dedicated monitoring channel for all messagesshowPlayerDetails: Show Steam profile and Takaro profile links in notifications/ban) from cluttering your Discord.sendPlayerConnected: (true/false, default: true) Enable player connect notifications.sendPlayerDisconnected: (true/false, default: true) Enable player disconnect notifications.onlyGlobalChat: (true/false, default: true) Restrict to global chat only.filterCommands: (true/false, default: false) Filter out in-game command messages.filterSystemMessages: (true/false, default: false) Filter out system messages.useMonitoring: (true/false, default: false) Enable a dedicated monitoring channel.monitoringChannelId: (string) Discord channel ID for monitoring (required if useMonitoring is enabled).PlayerDisconnected / PlayerConnected: Handles player join/leave notifications.DiscordToGame: Relays messages from your Discord server to the game.GameToDiscord: Relays in-game chat messages to Discord, applying all configured filters.googleApiKey: (Required) Enter your Google Cloud API key with access to the Cloud Translation API.maxMessageLength: Set the maximum character length for messages to be translated (to manage API usage/costs). Default: 500.defaultLanguage: Set the default language code (ISO 639-1) for translations when a player hasn't specified their preference. Default: en.supportedLanguages: Define an array of ISO 639-1 language codes (e.g., ["en", "es", "fr"]) for the languages supported by the module.commandPrefixes: (Optional) An array of prefixes that are used to identify commands. Messages that start with these prefixes will not be translated. Default: ["/"]TRANSLATE_PERMISSION: Grants players access to basic translation commands (/translate, /setlanguage, /toggletranslation, /translateme).TRANSLATE_ADMIN: Allows administrators to set language preferences for other players (/setplayerlanguage).AUTO_TRANSLATE_PERMISSION: Allows players to receive automatically translated messages./translate <language> "text": Translates the provided text into the specified language and sends it to the global chat./setlanguage <code>: Sets the player's preferred language for receiving translations (e.g., /setlanguage es)./toggletranslation on/off: Enables or disables automatic translation for the player./translateme <player> [count]: Translates the last count messages from the specified player and sends them to the user via DM. If count is omitted, translates the last message./setplayerlanguage <player> <language>: (Admin only) Sets the preferred language for another player.maxMessageLength setting to avoid excessive API usage and potential costs./bike: Teleports the player's min-bike to their location (if nearby)./4x4: Teleports the player's 4x4 to their location (if nearby)./gyro: Teleports the player's gyrocopter to their location (if nearby)./motorcycle: Teleports the player's motorcycle to their location (if nearby)./bicycle: Teleports the player's bicycle to their location (if nearby)./drone: Teleports the player's drone to their location (if nearby)./home: Teleports the player to their set home location (bedroll)./visit <playerTarget>: Allows a player to teleport to another player on the server, provided they are friends in-game and the target player is online./debuff: Removes common debuffs from the player (broken bones, sprains, etc.)./gfxon: Enables low graphics mode for improved performance./gfxoff: Disables low graphics mode, restoring normal graphics./gfx: Toggles gfx mode./link Shows the player how to link their account to the server.inGameCommands: General permission for most of the module's commands.
* HOME_PERMISSION: Permission to use the /home command.
* VISIT_PERMISSION: Permission to use the /visit command./bike, /4x4, /gyro, etc.) typically require the player to be within a certain proximity of their vehicle for the command to work. The exact range is defined by PrismaCore./home command requires players to have a valid bedroll set as their home location./visit command relies on 7 Days to Die's in-game friend system. Players must be friends with the target player to teleport to them./gfxon and /gfxoff commands may not be effective in all game settings or configurations. Their functionality depends on how the game handles graphics settings./BBM command automatically sets the necessary server commands to activate 'Better Blood Moons'. It also provides a reminder about a recommended XML setting change./BBMoff command reverts the server settings to their default, effectively disabling 'Better Blood Moons'. It also provides a reminder about reverting the XML setting if changed.CPMsettings.xml file, reducing the risk of errors and making it easier to switch between default and enhanced Blood Moon settings./BBM and /BBMoff commands is controlled by a dedicated permission.BETTER_BLOOD_MOONS permission to the user roles or players who should be able to use the /BBM and /BBMoff commands./BBM: Executes the commands to enable 'Better Blood Moons' and displays a recommended XML setting./BBMoff: Executes the commands to disable 'Better Blood Moons' and displays a reminder about the XML setting.BloodmoonSpawner_DespawnAllOnStart) in the CPMsettings.xml file. While the module automates other settings, this XML setting might need manual adjustment for optimal behavior.buffplayer PlayerName BuffName for online players. It also includes a permission-gated admin command, /grantbuff <player> <buffName>, so staff can manually test or grant a buff without waiting for the schedule.
grant-playtime-rewards cronjob finds online players and grants one random configured reward to each player.buffCommandTemplate defaults to buffplayer {playerName} {buffName}, with placeholders for {playerName}, {playerId}, {gameId}, and {buffName}./grantbuff <player> <buffName> is guarded by PLAYTIME_BUFF_ADMIN for manual buff grants.{playerName}, {buffName}, {rewardName}, and {amount}.{ "buffCommandTemplate": "buffplayer {playerName} {buffName}", "buffRewards": [ { "buffName": "WellFed", "weight": 2, "enabled": true }, { "buffName": "MegaCrush", "weight": 1, "enabled": true } ], "commandRewards": [ { "name": "Ammo bundle", "command": "give {playerName} ammo762mmBulletBall 30", "weight": 1 } ], "currencyRewards": [ { "name": "Pocket money", "amount": 25, "weight": 1 } ] }
/grantbuff <player> <buffName> | Manually grant a buff to a player. Requires PLAYTIME_BUFF_ADMIN. |PLAYTIME_BUFF_ADMIN | Allows staff to use /grantbuff for manual grants and testing. |buffCommandTemplate: Console command template for buff grants. Defaults to buffplayer {playerName} {buffName}.buffRewards: Weighted list of buff names eligible for the hourly reward cycle.commandRewards: Weighted list of generic console commands for item, ammo, food, or custom rewards.currencyRewards: Weighted list of Takaro currency grants.announceRewards: Toggle broadcast messages for reward grants.defaultRewardMessage: Fallback announcement when a reward does not define its own message.koji-paper-1 using a real Mineflayer player, Bot1_BuffTester.buffplayer command, the test used a Minecraft-safe template: say [PlaytimeBuff] {playerName} received {buffName}. The module still exercised the important Takaro path: online player lookup, player-name hydration, command template rendering, game-server command execution, announcement sending, and Takaro currency grants.grant-playtime-rewards found Bot1_BuffTester online.say [PlaytimeBuff] Bot1_BuffTester received WellFed with 200 OK from the game-server command API.Bot1_BuffTester got the WellFed buff reward.add-currency with 25 and emitted a currency-added event.success: true and granted 1 reward(s) to 1 online player(s).grant-buff. Added 1 scheduled task: grant-playtime-rewards. Added 1 function: playtime-buff-helpers. New permission: PLAYTIME_BUFF_ADMIN. New configuration options: buffCommandTemplate, announceRewards, defaultRewardMessage, buffRewards, commandRewards, currencyRewards.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.
Console command template used to grant a buff. Supports {playerName}, {playerId}, {gameId}, and {buffName}.
buffplayer {playerName} {buffName}Broadcast a message when a playtime reward is granted.
trueFallback message for rewards that do not define their own message.
{playerName} received a playtime reward: {rewardName}.Buff rewards eligible for hourly playtime grants.
[{"buffName":"WellFed","weight":1,"enabled":true,"message":"{playerName} received the {buffName} buff for playing."}]Generic console-command rewards, useful for items such as food, drinks, ammo, or meds.
[] (empty array)Takaro currency rewards eligible for hourly playtime grants.
[] (empty array)No UI schema defined. Configuration form will use default rendering.
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.
These commands can be executed by players in-game. Each command has a trigger word, optional arguments, and executes JavaScript code on the server.
NoneNoneCommands 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.
These jobs run automatically on a schedule defined by cron expressions. Each job executes JavaScript code at specific times or intervals.
Every hour
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).
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.
Reusable JavaScript functions that can be imported and used by other module components like commands, hooks, and cron jobs. These promote code reuse and modularity.
Functions are reusable JavaScript components that can be imported and used by commands, hooks, and cron jobs within your module. They promote code reuse, improve maintainability, and allow you to organize complex logic into modular pieces. Functions must be exported with proper ES6/CommonJS syntax to be importable by other components.
These permissions control who can access different features of this module. Administrators can assign these permissions to roles, allowing fine-grained access control.
PLAYTIME_BUFF_ADMINPermission KeyAllows manually granting buffs through the playtime buff rewards module.
PLAYTIME_BUFF_ADMINPermissions 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.