Skip to Content
Haven Documentation is the shared home for product guides, plugin setup, and release docs.

Rival Credits Configuration

When dashboard-backed configuration is enabled, use the dashboard first because live settings may be stored in MongoDB instead of only reading local JSON5 files.

Config Files

  • Main config: configuration/rival_credits.json5
  • Language config: configuration/rival_credits_lang.json5
  • Plugin entry: plugins/rival_credits/main.js

Main Fields

FieldTypeDefault / Template ValueNotes
enabledbooleantrueTurns the integration on or off.
command_permissionstringmemberBase permission needed to see and use /rcredits.
ephemeral_replybooleantrueKeeps command replies private by default.
cooldown_secondsnumber5Per-user cooldown for RCON actions.
max_requests_per_minutenumber30Server-wide RCON request cap.
response_limit_charsnumber900Maximum RCON response text shown in embeds.
player_name_patternstring^[A-Za-z0-9_]{3,16}$Username validation regex. Adjust for Geyser or custom name formats.
rcon.hoststring127.0.0.1Reachable RCON host or IP for the Minecraft server.
rcon.portnumber25575RCON port, not the Minecraft game or query port.
rcon.passwordstringCHANGE_MEMust match rcon.password in server.properties.
rcon.timeout_msnumber5000RCON connection timeout.
amounts.allow_decimalsbooleantrueAllows decimal credit amounts.
amounts.decimal_placesnumber2Rounds decimal amounts before sending them to RCON.
amounts.max_amountnumber1000000000Highest allowed amount for give, remove, and set actions.
permissions.balancestringmemberPermission for balance checks.
permissions.givestringmanagementPermission for granting credits.
permissions.removestringmanagementPermission for removing credits.
permissions.setstringmanagementPermission for setting a balance.
permissions.resetstringmanagementPermission for resetting a balance.
permissions.teststringmanagementPermission for testing RCON.
commands.balancestringcredits balance {player}RCON command template for balance checks.
commands.givestringcredits give {player} {amount}RCON command template for giving credits.
commands.removestringcredits remove {player} {amount}RCON command template for removing credits.
commands.setstringcredits set {player} {amount}RCON command template for setting credits.
commands.resetstringcredits reset {player}RCON command template for resets.
commands.teststringlistRCON command used by /rcredits test.
response_parsing.balance_regexstringBalance capture regexFirst matched capture group is shown as the parsed balance.
logging.log_commandsbooleantrueLogs RCON command text to AthenaBot logs.
logging.log_rcon_responsesbooleanfalseLogs raw RCON responses. Keep off unless debugging.

Command Template Variables

The plugin replaces these placeholders before sending the RCON command:

PlaceholderAvailable OnExample
{player}balance, give, remove, set, resetNotch
{amount}give, remove, set25
{reason}give, remove, set, resetrefund

Do not include a leading slash in command templates. RCON runs them as console commands.

Language Config

Use configuration/rival_credits_lang.json5 to rename the slash command, subcommands, options, action labels, error messages, and embed text. Restart AthenaBot after changing slash command names so Discord receives the updated command structure.