Flavor-HuHoBot-Discord-Bridge
你的 Paper 服务器的 Discord 原生控制中心。
Flavor-HuHoBot 将聊天、账号绑定、白名单管理、服务器状态卡片、基于审批的 AI Agent 以及本地 WebUI 整合到一个轻量级插件中——让你的社区可以留在 Discord,同时你也能继续运行服务器。
English
为什么选择它
- 一个插件兼顾桥接与管理 — 无需额外的聊天同步或白名单插件
- Discord 原生状态卡片 —
/motd、/online 和 /whitelist list 返回从 HTML 渲染的整洁图片卡片
- 聊天审核 — 双向均使用相同的字面量、不区分大小写的违禁词过滤器
- 重命名内置命令 — 修改
commands 映射表,可将 /bind 暴露为 /verify
- 真正能操作服务器的 AI Agent — 检查日志、执行命令、管理白名单、审核 Discord 成员
- 危险操作需审批 — 敏感 AI 操作需要管理员点击“批准”
- 本地 WebUI — 编辑常用设置并查看审计记录,无需将其暴露在公网上
- 中英文界面 — 语言文件涵盖游戏内消息和 Discord 命令描述
- 部署简单 — Paper 1.21+ 和 Java 21;将 jar 包放入
plugins/ 即可
功能
双向聊天桥接
游戏聊天和 Discord 消息可以使用不同的频道。
bridge:
channels:
game-to-discord: "用于游戏消息的频道"
discord-to-game: "用于读取 Discord 消息的频道"
将任一频道 ID 留空以禁用该方向的消息传输。
账号绑定
直接模式:
/bind value:<Minecraft ID>
强制绑定模式:
玩家加入 → 被踢出并收到 5 位验证码 → /bind value:<code> → 重新加入
解绑方式:
/unbind
在游戏中:
/flavorhuhobot unbind
AI Agent
通过自然语言在 Discord 中管理服务器:
/agent run task:列出服务器插件
/agent run task:检查最近 100 行日志中的错误
/agent run task:添加 Steve 到白名单
/agent run task:对 @someone 进行 10 分钟禁言
16 种内置工具:
- Minecraft:插件列表、命令帮助、日志、执行命令、白名单添加/移除/列表、玩家信息
- Discord:服务器信息、成员信息、角色列表、发送消息、禁言、踢出、封禁、角色管理
在 manual(手动)模式下,危险工具会发送“批准/拒绝”按钮。默认情况下,请求者不能批准自己的操作。
可点击的帮助
在游戏中运行:
/fh help
命令列表是可点击的。点击某个命令会将其填入聊天输入框,但不会执行。
本地 WebUI
http://127.0.0.1:8080
默认监听本地主机,使用一次性令牌,允许你编辑常用设置并查看审计记录。
文本格式化
支持旧版颜色代码和 MiniMessage:
&aGreen text
<red>Red text</red>
<gradient:#00ffcc:#0099ff>Gradient text</gradient>
快速开始
- 下载
Flavor-HuHoBot-Discord-Bridge.jar 并将其放入 plugins/
- 启动服务器,然后编辑
plugins/Flavor-HuHoBot-Discord-Bridge/config.yml
- 填写机器人令牌、服务器 ID 和频道 ID
- 邀请机器人时,选择:
- Scopes(范围):
bot、applications.commands
- Permissions(权限):View Channels(查看频道)、Send Messages(发送消息)、Embed Links(嵌入链接)、Read Message History(读取消息历史)
- 运行
/reload,或重启服务器
完整的安装、权限、配置和命令参考:
完整文档 (GitHub)
要求
| 项目 |
要求 |
| 服务器 |
Paper 1.21+ |
| Java |
Java 21 |
| Discord |
启用消息内容和服务器成员意图 |
| AI(可选) |
兼容 OpenAI Chat Completions 且支持函数调用的端点 |
常用命令
| 命令 |
描述 |
/agent run task:<task> |
运行 AI 任务 |
/agent new |
清除 AI 上下文 |
/agent stop |
停止当前任务 |
/bind value:<Minecraft ID or code> |
绑定账号(允许多个) |
/unbind [Minecraft ID] |
解绑特定账号 |
/lock [Minecraft ID] |
锁定账号并阻止其加入 |
/unlock [Minecraft ID] |
解锁账号 |
/status |
服务器状态 |
/online |
在线玩家和活动卡片 |
/motd [address] |
服务器状态卡片;默认为配置中的地址 |
/whitelist add|remove|list |
白名单管理 |
/console command:<command> |
执行控制台命令 |
/reload |
重新加载所有文件并重新连接机器人 |
游戏内主命令:/flavorhuhobot
别名:/fh、/discord
配置
配置文件围绕你实际管理的对象组织:
config-version: 9
discord:
token: ""
server-id: ""
bridge:
channels:
game-to-discord: ""
discord-to-game: ""
audit: ""
bind:
whitelist-on-bind: false
max-accounts: 1
插件会自动升级旧配置文件,保留现有值,并使用当前布局重写文件。不会创建 .bak 备份文件。
旧的 links.json 文件会自动迁移到 binds.json。
语言文件拥有独立的版本号:
language-version: 4
现有的翻译会被保留,缺失的键会自动添加。
兼容性
- Paper 1.21+
- Java 21
- 单 Guild
- 不支持控制台频道双向转发、背包渲染、脚本扩展、Velocity 或 Bungee
- 聊天桥接需要 Message Content 特权 intent
链接
许可证
GNU Affero General Public License v3.0 (AGPL-3.0)
完整文本见 LICENSE。
中文
让 Discord 成为 Paper 服务器的日常操作台。
Flavor-HuHoBot 把双向聊天、账号绑定、白名单、服务器状态卡片、需审批的 AI Agent 和本地 WebUI 整合为一个轻量插件。玩家可继续留在 Discord,管理员也能在同一处完成日常维护。
为什么选择它
- 一个插件完成桥接与管理:无需再安装额外的聊天同步或白名单插件
- Discord 内的状态卡片:
/motd、/online、/whitelist list 直接返回 HTML 渲染的图片卡片
- 聊天审核:游戏与 Discord 两个方向共用同一套字面、大小写不敏感的违禁词过滤
- 重命名内置指令:修改
commands 映射即可将 /bind 替换为 /verify
- AI 真正能操作服务器:不仅仅是聊天,还能查日志、执行命令、管理白名单和 Discord 成员
- 危险操作有审批:AI 执行敏感操作前必须由管理员点击批准
- 本地 WebUI:无需暴露公网即可修改配置、查看审计日志
- 中英双语界面:语言文件同时包含游戏提示与 Discord 命令描述
- 部署简单:Paper 1.21+、Java 21,放入
plugins/ 目录即可
功能
双向聊天桥接
游戏消息和 Discord 消息可以分别使用不同的频道。
bridge:
channels:
game-to-discord: "游戏消息发往的频道"
discord-to-game: "读取 Discord 消息的频道"
任意一个频道 ID 留空,该方向的转发自动关闭。
账号绑定
普通模式:
/bind value:<游戏ID>
强制绑定模式:
玩家进服 → 被踢出并获得 5 位验证码 → /bind value:<验证码> → 重新进服
解除绑定:
/unbind
游戏内:
/flavorhuhobot unbind
AI Agent
在 Discord 里用自然语言管理服务器:
/agent run task:查看服务器插件列表
/agent run task:查看最近 100 行日志有没有报错
/agent run task:给 Steve 添加白名单
/agent run task:禁言 @某人 10 分钟
支持 16 个工具:
- 服务器:插件列表、命令帮助、日志、执行命令、白名单增删查、玩家信息
- Discord:服务器信息、成员信息、角色列表、发消息、禁言、踢出、封禁、角色管理
危险工具在 manual 模式下会发送「批准 / 拒绝」按钮,默认不允许发起者自己批准。
可点击帮助
游戏内执行:
/fh help
命令列表支持点击,点击后会将命令填入聊天输入栏,不会直接执行。
本地 WebUI
http://127.0.0.1:8080
默认只监听本地,使用一次性令牌登录,可修改常用配置、查看审计日志。
文本格式
支持传统颜色代码与 MiniMessage:
&a绿色文字
<red>红色文字</red>
<gradient:#00ffcc:#0099ff>渐变文字</gradient>
快速开始
- 下载
Flavor-HuHoBot-Discord-Bridge.jar,放入 plugins/
- 启动服务器,编辑
plugins/Flavor-HuHoBot-Discord-Bridge/config.yml
- 填写 Bot Token、服务器 ID、频道 ID
- 邀请机器人时勾选:
- Scopes:
bot、applications.commands
- 权限:查看频道、发送消息、嵌入链接、阅读消息历史
- 执行
/reload,或重启服务器
详细安装、权限、配置和命令说明:
完整文档(GitHub)
环境要求
| 项目 |
要求 |
| 服务端 |
Paper 1.21+ |
| Java |
Java 21 |
| Discord |
开启 Message Content 与 Server Members intent |
| AI(可选) |
OpenAI Chat Completions 兼容接口,支持 function calling |
常用命令
| 命令 |
说明 |
/agent run task:<任务> |
执行 AI 任务 |
/agent new |
清除 AI 上下文 |
/agent stop |
停止当前任务 |
/bind value:<游戏ID或验证码> |
绑定账号,可绑定多个 |
/unbind [游戏ID] |
解除指定账号绑定 |
/lock [游戏ID] |
锁定账号,禁止进入服务器 |
/unlock [游戏ID] |
解锁账号 |
/status |
服务器状态 |
/online |
在线玩家与活跃度卡片 |
/motd [地址] |
服务器状态卡片,留空使用默认地址 |
/whitelist add|remove|list |
白名单管理 |
/console command:<命令> |
执行控制台命令 |
/reload |
重载所有文件并重连机器人 |
游戏内主命令:/flavorhuhobot
别名:/fh、/discord
配置结构
配置按实际管理对象组织:
config-version: 9
discord:
token: ""
server-id: ""
bridge:
channels:
game-to-discord: ""
discord-to-game: ""
audit: ""
bind:
whitelist-on-bind: false
max-accounts: 1
插件会自动升级旧配置并保留已填写的值,然后用当前布局重写文件,不生成 .bak 备份。
旧版 links.json 会自动迁移为 binds.json。
语言文件有独立版本:
language-version: 4
插件会保留已有翻译,并自动补齐缺失的语言键。
兼容性
- Paper 1.21+
- Java 21
- 单 Guild
- 不支持控制台频道双向转发、背包渲染、脚本扩展、Velocity/Bungee
- 聊天桥接需要 Message Content 特权 intent
链接
许可证
GNU Affero General Public License v3.0 (AGPL-3.0)
完整文本见 LICENSE。
Current version / 当前版本:1.0.5
Flavor-HuHoBot-Discord-Bridge
A Discord-native control room for your Paper server.
Flavor-HuHoBot brings chat, account linking, whitelist management, server status cards, an approval-based AI Agent, and a local WebUI into one lightweight plugin — so your community can stay in Discord while you keep the server running.
English
Why Choose It
- One plugin for bridging and management — no separate chat-sync or whitelist plugin required
- Discord-native status cards —
/motd, /online, and /whitelist list return clean image cards rendered from HTML
- Chat moderation — both directions use the same literal, case-insensitive banned-word filter
- Rename built-in commands — change the
commands map to expose /verify instead of /bind
- An AI Agent that can actually operate the server — inspect logs, run commands, manage the whitelist, and moderate Discord members
- Approval for dangerous actions — sensitive AI operations require an administrator to click Approve
- Local WebUI — edit common settings and review audits without exposing it to the internet
- Chinese and English UI — language files cover both in-game messages and Discord command descriptions
- Simple deployment — Paper 1.21+ and Java 21; drop the jar into
plugins/
Features
Two-Way Chat Bridge
Game chat and Discord messages can use different channels.
bridge:
channels:
game-to-discord: "Channel for game messages"
discord-to-game: "Channel read for Discord messages"
Leave either channel ID empty to disable that direction.
Account Linking
Direct mode:
/bind value:<Minecraft ID>
Force-bind mode:
Player joins → gets kicked with a 5-digit code → /bind value:<code> → rejoins
Unlink with:
/unbind
In game:
/flavorhuhobot unbind
AI Agent
Manage the server from Discord with natural language:
/agent run task:List the server plugins
/agent run task:Check the last 100 log lines for errors
/agent run task:Whitelist Steve
/agent run task:Timeout @someone for 10 minutes
16 built-in tools:
- Minecraft: plugin list, command help, logs, run command, whitelist add/remove/list, player info
- Discord: guild info, member info, role list, send message, timeout, kick, ban, role management
In manual mode, dangerous tools send Approve / Reject buttons. By default, the requester cannot approve their own action.
Clickable Help
Run this in game:
/fh help
The command list is clickable. Clicking a command places it in the chat input without executing it.
Local WebUI
http://127.0.0.1:8080
Listens on localhost by default, uses a one-time token, and lets you edit common settings and review audits.
Text Formatting
Legacy color codes and MiniMessage are both supported:
&aGreen text
<red>Red text</red>
<gradient:#00ffcc:#0099ff>Gradient text</gradient>
Quick Start
- Download
Flavor-HuHoBot-Discord-Bridge.jar and place it in plugins/
- Start the server, then edit
plugins/Flavor-HuHoBot-Discord-Bridge/config.yml
- Fill in the bot token, guild ID, and channel IDs
- When inviting the bot, select:
- Scopes:
bot, applications.commands
- Permissions: View Channels, Send Messages, Embed Links, Read Message History
- Run
/reload, or restart the server
Full installation, permissions, configuration, and command reference:
Full Documentation (GitHub)
Requirements
| Item |
Requirement |
| Server |
Paper 1.21+ |
| Java |
Java 21 |
| Discord |
Message Content and Server Members intents enabled |
| AI (optional) |
OpenAI Chat Completions compatible endpoint with function calling |
Common Commands
| Command |
Description |
/agent run task:<task> |
Run an AI task |
/agent new |
Clear AI context |
/agent stop |
Stop the current task |
/bind value:<Minecraft ID or code> |
Link an account (multiple allowed) |
/unbind [Minecraft ID] |
Unlink a specific account |
/lock [Minecraft ID] |
Lock an account and block it from joining |
/unlock [Minecraft ID] |
Unlock an account |
/status |
Server status |
/online |
Online players and activity card |
/motd [address] |
Server status card; defaults to the configured address |
/whitelist add|remove|list |
Whitelist management |
/console command:<command> |
Run a console command |
/reload |
Reload all files and reconnect the bot |
In-game main command: /flavorhuhobot
Aliases: /fh, /discord
Configuration
The config is organised around the things you actually manage:
config-version: 9
discord:
token: ""
server-id: ""
bridge:
channels:
game-to-discord: ""
discord-to-game: ""
audit: ""
bind:
whitelist-on-bind: false
max-accounts: 1
The plugin upgrades old configs automatically, preserves existing values, and rewrites the file using the current layout. No .bak files are created.
The legacy links.json file is migrated to binds.json automatically.
Language files have their own version:
language-version: 4
Existing translations are preserved and missing keys are added automatically.
Compatibility
- Paper 1.21+
- Java 21
- Single guild
- No console-channel relay, inventory rendering, scripting, Velocity, or Bungee support
- Chat bridging requires the Message Content privileged intent
Links
License
GNU Affero General Public License v3.0 (AGPL-3.0)
See LICENSE for the full text.
中文
让 Discord 成为 Paper 服务器的日常操作台。
Flavor-HuHoBot 把双向聊天、账号绑定、白名单、服务器状态卡片、需要审批的 AI Agent 和本地 WebUI 收进一个轻量插件。玩家继续留在 Discord,管理员也能在同一处完成日常维护。
为什么选择它
- 一个插件完成桥接与管理:不需要再装额外的聊天同步或白名单插件
- Discord 内的状态卡片:
/motd、/online、/whitelist list 直接返回 HTML 渲染的图片卡片
- 聊天审核:游戏与 Discord 两个方向共用同一套字面、大小写不敏感的违禁词过滤
- 重命名内置指令:修改
commands 映射即可把 /bind 换成 /verify
- AI 真正能操作服务器:不只是聊天,还能查日志、执行命令、管理白名单和 Discord 成员
- 危险操作有审批:AI 执行敏感操作前必须由管理员点击批准
- 本地 WebUI:不暴露公网也能改配置、看审计
- 中英双语界面:语言文件同时包含游戏提示与 Discord 命令描述
- 部署简单:Paper 1.21+、Java 21,丢进
plugins/ 即可
功能
双向聊天桥接
游戏消息和 Discord 消息可以分别使用不同频道。
bridge:
channels:
game-to-discord: "游戏消息发往的频道"
discord-to-game: "读取 Discord 消息的频道"
任意一个频道 ID 留空,该方向自动关闭。
账号绑定
普通模式:
/bind value:<游戏ID>
强制绑定模式:
玩家进服 → 被踢出并获得 5 位验证码 → /bind value:<验证码> → 重新进服
解除绑定:
/unbind
游戏内:
/flavorhuhobot unbind
AI Agent
在 Discord 里用自然语言管理服务器:
/agent run task:查看服务器插件列表
/agent run task:查看最近 100 行日志有没有报错
/agent run task:给 Steve 添加白名单
/agent run task:禁言 @某人 10 分钟
支持 16 个工具:
- 服务器:插件列表、命令帮助、日志、执行命令、白名单增删查、玩家信息
- Discord:服务器信息、成员信息、角色列表、发消息、禁言、踢出、封禁、角色管理
危险工具在 manual 模式下会发送「批准 / 拒绝」按钮,默认不允许发起者自己批准。
可点击帮助
游戏内执行:
/fh help
命令列表支持点击,点击后会把命令填入聊天输入栏,不会直接执行。
本地 WebUI
http://127.0.0.1:8080
默认只监听本地,使用一次性令牌登录,可修改常用配置、查看审计。
文本格式
支持传统颜色代码与 MiniMessage:
&a绿色文字
<red>红色文字</red>
<gradient:#00ffcc:#0099ff>渐变文字</gradient>
快速开始
- 下载
Flavor-HuHoBot-Discord-Bridge.jar,放入 plugins/
- 启动服务器,编辑
plugins/Flavor-HuHoBot-Discord-Bridge/config.yml
- 填写 Bot Token、服务器 ID、频道 ID
- 邀请机器人时勾选:
- Scopes:
bot、applications.commands
- 权限:查看频道、发送消息、嵌入链接、阅读消息历史
- 执行
/reload,或重启服务器
详细安装、权限、配置和命令说明:
完整文档(GitHub)
环境要求
| 项目 |
要求 |
| 服务端 |
Paper 1.21+ |
| Java |
Java 21 |
| Discord |
开启 Message Content 与 Server Members intent |
| AI(可选) |
OpenAI Chat Completions 兼容接口,支持 function calling |
常用命令
| 命令 |
说明 |
/agent run task:<任务> |
执行 AI 任务 |
/agent new |
清除 AI 上下文 |
/agent stop |
停止当前任务 |
/bind value:<游戏ID或验证码> |
绑定账号,可绑定多个 |
/unbind [游戏ID] |
解除指定账号绑定 |
/lock [游戏ID] |
锁定账号,禁止进入服务器 |
/unlock [游戏ID] |
解锁账号 |
/status |
服务器状态 |
/online |
在线玩家与活跃度卡片 |
/motd [地址] |
服务器状态卡片,留空使用默认地址 |
/whitelist add|remove|list |
白名单管理 |
/console command:<命令> |
执行控制台命令 |
/reload |
重载所有文件并重连机器人 |
游戏内主命令:/flavorhuhobot
别名:/fh、/discord
配置结构
配置按实际管理对象组织:
config-version: 9
discord:
token: ""
server-id: ""
bridge:
channels:
game-to-discord: ""
discord-to-game: ""
audit: ""
bind:
whitelist-on-bind: false
max-accounts: 1
插件会自动升级旧配置并保留已填写的值,然后用当前布局重写文件,不生成 .bak 备份。
旧版 links.json 会自动迁移为 binds.json。
语言文件有独立版本:
language-version: 4
插件会保留已有翻译,并自动补齐缺失的语言键。
兼容性
- Paper 1.21+
- Java 21
- 单 Guild
- 不支持控制台频道双向转发、背包渲染、脚本扩展、Velocity/Bungee
- 聊天桥接需要 Message Content 特权 intent
链接
许可证
GNU Affero General Public License v3.0(AGPL-3.0)
完整文本见 LICENSE。
Current version / 当前版本:1.0.5
评论 0
登录后参与评分
还没有评论,来抢沙发吧