DiscordRcon

版本 v1.1.1·更新於 2026-05-31

Bridge Discord to your V Rising server via ScarletRCON. /rcon and /help slash commands, custom command shortcuts, role-based access control, smart command search.

截圖 共 1 張

模組介紹 作者原文

DiscordRcon is a V Rising dedicated server mod that bridges Discord to your game server via ScarletRCON. It provides /rcon and /help slash commands with role-based access control, so you can manage your server from Discord without giving everyone admin access.

Features

  • /rcon Command - Execute any RCON command directly from Discord. Supports base commands and plugin commands with dotted names (e.g., examplemod.player.mute).
  • /help Command - Browse all available RCON commands or get details for a specific command. Uses a cached command index with smart search: exact match, prefix matching (e.g., /help command: examplemod.player lists all player subcommands), and substring fallback.
  • "Did You Mean?" Suggestions - If an unknown command is entered via /rcon, the bot searches the command index and suggests similar commands.
  • Role-Based Access Control - Configure which Discord roles can use which commands via a simple JSON config. Admin roles grant access to everything; per-command roles add granular control.
  • ANSI to Markdown Conversion - Terminal color codes are converted to Discord markdown (bold for headers, plain text for descriptions).
  • Connect-Per-Command RCON - Each command opens a fresh RCON connection and closes it immediately after. Doesn't hog the connection slot, so you can still use your own RCON client alongside the bot.
  • Automatic Command Indexing - On startup, the bot queries the server for available commands and builds a searchable index. No manual configuration needed.
  • Long Response Handling - Responses over 2000 characters are split into multiple Discord messages using webhook followups.
  • Custom Slash Commands - Define your own slash commands in a JSON config that map to any RCON command. Great for shortcuts to frequently used commands.

Requirements

  • BepInEx for V Rising IL2CPP
  • ScarletRCON (hard dependency - DiscordRcon will not load without it)
  • A Discord bot with the Server Members Intent privileged intent enabled

How ScarletRCON Is Used

V Rising servers include a built-in RCON server, but it has limited functionality. ScarletRCON enhances it by allowing server mods to register custom RCON commands and providing a better help system. DiscordRcon depends on ScarletRCON for these features:

  • Command Execution - All commands sent via /rcon and custom slash commands are forwarded through ScarletRCON's enhanced RCON server, which routes them to the appropriate mod handlers.
  • Command Discovery - On startup, DiscordRcon runs ScarletRCON's help command to discover all registered commands (including those from other mods) and build a searchable index for /help and "Did you mean?" suggestions.
  • Response Formatting - ScarletRCON returns command output with ANSI terminal color codes, which DiscordRcon converts to Discord markdown.
  • Connection Model - ScarletRCON only allows one RCON connection at a time, so DiscordRcon opens a fresh connection per command and closes it immediately after, leaving the slot free for other RCON clients. Commands from multiple Discord users are automatically queued and processed one at a time.

Commands

| Command | Description | Example |

|---|---|---|

| /rcon command: | Execute any RCON command | /rcon command: kick fryke |

| /help | Show all available RCON commands | /help |

| /help command: | Show help for a specific command | /help command: examplemod.player.mute |

Custom Commands

Custom slash commands are configured in BepInEx/config/DiscordRcon/discordrcon_commands.json. This file is created automatically on first run with some common defaults:

[

{

"name": "kick",

"description": "Kick a player from the server",

"rconCommand": "kick"

},

{

"name": "ban",

"description": "Ban a player from the server",

"rconCommand": "ban"

},

{

"name": "listplayers",

"description": "List all online players",

"rconCommand": "listplayers"

}

]

You can add your own shortcuts for plugin commands too:

[

{

"name": "mute",

"description": "Mute a player",

"rconCommand": "exa

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack_V_RisingScarletMods-ScarletRCON

檔案與校驗

檔案名稱
DiscordRcon-1.1.1.zip
檔案大小
786.7 KiB