Discord Command Bridge
简化工作流程,随时随地高效管理你的服务器。该插件将 Minecraft 服务器与 Discord 无缝集成,赋予工作人员直接从安全的 Discord 频道执行关键游戏内命令的能力。
完美适用于远程管理: 无需启动 Minecraft 或登录繁琐的控制面板,即可随时处理审核、玩家管理和紧急服务器修复工作。
?️ 主要功能一览
| 功能 |
作用 |
重要性 |
| 远程控制台权限 |
直接从 Discord 运行核心命令(/ban, /kick, /tp)。 |
零延迟,即时执行,效果等同于直接输入服务器控制台。 |
| 细粒度角色映射 |
将特定的 Discord 角色与允许执行的 Minecraft 命令列表精确对应。 |
完全的安全保障。限制初级工作人员的权限,同时给予高级管理员完整访问权。 |
| 频道锁定 |
将机器人的监听能力限制在单个隐藏频道中。 |
防止普通玩家看到工作人员的活动或尝试滥用命令。 |
| 即时反馈 |
返回实时的执行成功状态、格式错误或权限拒绝信息。 |
工作人员始终清楚其命令是否生效或失败。 |
? 工作原理:命令生命周期
流程从 Discord 到 Minecraft 再返回仅需几毫秒。以下是插件处理远程请求的具体过程:
-
接收命令: Discord 端。
授权的工作人员在指定频道中使用自定义前缀输入命令。
示例:.kick Notch "Griefing"
-
安全检查: 内部守卫。
插件拦截消息,并将用户的最高 Discord 角色与 config.yml 中的权限布局进行交叉核对。
-
控制台执行: Minecraft 端。
如果获得授权,插件会将命令推送到 Minecraft 服务器池,并以控制台级权限即时执行。
-
状态报告: Discord 端。
机器人回复该频道。它提供绿色的成功消息(例如:Command executed: kick Notch...),或在权限不足时提供红色的拒绝警报。
? 权限层级示例
你可以在 config.yml 中精确自定义权限。插件严格评估角色,并支持通配符 (*) 以实现终极控制。以下是一个常见的设置模型:
⚙️ 快速配置预览
搭建你的桥接只需不到两分钟。config.yml 会无缝处理一切:
# Discord Command Bridge Configuration
bot-token: "YOUR_DISCORD_BOT_TOKEN_HERE"
command-prefix: "." # 更改为 !, / 或适合你风格的符号
channel-id: "123456789012345678" # 仅在此频道中限制机器人执行
# 将你的 Discord 角色 ID 映射到允许的 Minecraft 命令(排除斜杠)
role-mappings:
"987654321098765432": # Admin Role ID
- "*"
"876543210987654321": # Mod Role ID
- "kick"
- "ban"
- "warn"
Discord Command Bridge
Streamline your workflow and manage your server efficiently from anywhere. This plugin seamlessly integrates your Minecraft server with Discord, empowering your staff to execute vital in-game commands directly from a secure Discord channel.
Perfect for Remote Administration: Handle moderation, player management, and emergency server fixes on the go without needing to launch Minecraft or log into a clunky panel.
?️ Key Features At A Glance
| Feature |
What It Does |
Why It Matters |
| Remote Console Power |
Run core commands (/ban, /kick, /tp) directly from Discord. |
Zero lag, instant execution as if typed directly into the server console. |
| Granular Role Mapping |
Pair specific Discord roles to exact list of allowed Minecraft commands. |
Total security. Keep junior staff restricted while giving senior admins full access. |
| Channel Locking |
Restrict the bot's listening capability to a single, hidden channel. |
Prevents regular players from seeing staff activity or trying to spam commands. |
| Instant Feedback |
Returns real-time execution success, format errors, or permission denials. |
Staff always know if their command went through or if it failed. |
? How It Works: The Lifecycle of a Command
The process moves from Discord to Minecraft and back in milliseconds. Here is exactly how the plugin handles a remote request:
-
Command Received: Discord Side.
An authorized staff member types a command in the designated channel using your custom prefix.
Example: .kick Notch "Griefing"
-
Security Check: Internal Guard.
The plugin intercepts the message and crosses-checks the user's highest Discord role against your config.yml permissions layout.
-
Console Execution: Minecraft Side.
If authorized, the plugin pushes the command to the Minecraft server pool, executing it instantly with Console-level privileges.
-
Status Report: Discord Side.
The bot replies to the channel. It provides a green success message (e.g., Command executed: kick Notch...) or a red denial alert if permissions were lacking.
? Permission Hierarchy Example
You can customize permissions precisely in the config.yml. The plugin evaluates roles strictly, and even supports a wildcard (*) for ultimate control. Here is a common setup model:
-
Discord Role: @Admin
-
Allowed Commands: * (Full console access)
-
Discord Role: @Moderator
-
Allowed Commands: kick, ban, mute, tempban
-
Discord Role: @Helper
-
Allowed Commands: tp, warn, history
⚙️ Quick Configuration Preview
Setting up your bridge takes less than two minutes. Your config.yml handles everything seamlessly:
# Discord Command Bridge Configuration
bot-token: "YOUR_DISCORD_BOT_TOKEN_HERE"
command-prefix: "." # Change to !, /, or whatever fits your style
channel-id: "123456789012345678" # Restrict bot execution to this channel only
# Map your Discord Role IDs to allowed Minecraft commands (exclude the slash)
role-mappings:
"987654321098765432": # Admin Role ID
- "*"
"876543210987654321": # Mod Role ID
- "kick"
- "ban"
- "warn"
评论 0
登录后参与评分
还没有评论,来抢沙发吧