? Chat-Channels
Chat-Channels 是一款轻量且灵活的 Paper 插件,允许玩家在多个聊天频道之间切换,每个频道都有各自的格式设置,并支持完整的 Discord 集成(Webhook + 机器人同步) ?。
非常适合希望实现玩家、工作人员和社区之间清晰、有条理的沟通的服务器——无论是在游戏内还是 Discord 上。
✨ 功能
- ? 多个可自定义的聊天频道
- ? 通过命令轻松切换频道
- ?️ 每个频道自定义前缀
- ? 仅限工作人员使用的频道(限制 OP)
- ? Discord Webhook 集成(Minecraft → Discord)
- ? Discord 机器人集成(Discord → Minecraft)
- ? 将特定 Discord 频道与游戏内频道同步
- ? Discord 消息中显示玩家头像(Webhook)
- ? 完整颜色支持(包括 HEX 颜色)
- ? 可选 Vault 集成(支持前缀和后缀)
- ? 热重载,如果令牌更改则自动重启机器人
- ⚡ 轻量级且配置简单
- ? 全局聊天支持(原版 + 可选 Discord 同步)
? Vault 支持(可选)
如果您安装了 Vault(例如搭配 LuckPerms 插件):
- ? 玩家的前缀和后缀会自动应用
- ? 完全支持颜色
- ? 聊天格式变得更加动态和可定制
无需额外配置——只需安装 Vault 即可。
如果未安装 Vault,插件仍可正常工作。
? 命令
/channel <name> - ? 切换到指定频道
/channel reload - ? 重新加载配置(仅限 OP)
⚙️ 配置
每个频道都可以在 config.yml 中进行完全自定义:
discord:
token: "" # 可选(启用 Discord 机器人)
channels:
global:
prefix: "[Global]"
webhook: "" # 可选
discord-channel-id: "" # 可选
staff:
prefix: "[Staff]"
webhook: "YOUR_WEBHOOK_URL" # 可选
discord-channel-id: "" # 可选
- ?️
prefix → 频道在聊天中的显示方式
- ?
webhook → 将 Minecraft 消息发送到 Discord(可选)
- ?
discord-channel-id → 同步 Discord → Minecraft(可选)
- ?
discord.token → 启用 Discord 机器人(可选)
- ? 支持 HEX 颜色(例如
&#FFAA00)
- ? 发送到 Discord 时会自动清理颜色代码
? 安装
- ? 下载最新的
.jar 文件
- ? 将其放入服务器的
plugins 文件夹
- ▶️ 启动或重启服务器
- ? 编辑
config.yml 以自定义频道
⚙️ 工作原理
- ? 玩家默认被分配到全局频道
- ? 使用
/channel 在可用频道之间切换
- ? 只有同一频道的玩家才能看到消息
- ? 消息可以通过 Webhook 发送到 Discord(可选)
- ? Discord 消息可以出现在 Minecraft 中(可选)
?️ 频道系统
-
? 全局频道
- 使用原版 Minecraft 聊天
- 可选 Discord 同步
-
? 工作人员频道
-
⚙️ 自定义频道
? Discord 机器人设置
1️⃣ 创建 Discord 应用程序
- 访问:
- 点击 “New Application”
- 为其命名并创建
2️⃣ 创建机器人
-
进入 “Bot” 标签页
-
点击 “Add Bot”
-
启用以下选项:
- ✅ Public Bot
- ✅ Server Members Intent
- ✅ Message Content Intent
-
复制 TOKEN 并将其放入 config.yml:
discord:
token: "YOUR_BOT_TOKEN"
3️⃣ 将机器人邀请到您的服务器
- 进入 OAuth2 → URL Generator
- 选择:
Scopes:
Bot Permissions:
- View Channels
- Send Messages
- Read Message History
- 复制生成的 URL
- 在浏览器中打开它
- 将机器人添加到您的服务器
? 如何获取频道 ID
- 进入 Discord 设置 → Advanced(高级)
- 启用 Developer Mode(开发者模式)
- 右键单击频道 → Copy ID(复制 ID)
- 将其粘贴到配置中(可选):
discord-channel-id: "123456789012345678"
? 如何创建 Webhook
- 进入您的 Discord 频道
- 点击 ⚙️ Edit Channel(编辑频道)
- 进入 Integrations → Webhooks(集成 → Webhook)
- 点击 New Webhook
- 复制 Webhook URL
然后将其粘贴到配置中(可选):
webhook: "https://discord.com/api/webhooks/..."
? 注意事项
- ? 仅玩家可以使用命令
- ⚙️ 兼容 Paper 1.21+
- ? 使用 YAML 配置
- ? Discord 集成完全是可选的
? 未来计划
- ? 基于权限的频道(更深入的 LuckPerms 集成)
- ? 更多聊天格式选项
- ? 频道特定设置(冷却时间、过滤器)
- ?️ 用于选择频道的 GUI
? 作者
由 Wilkcraft 开发
? 许可证
本项目根据 MIT License 许可 - 详见 LICENSE 文件。
? 组织您的服务器聊天并将其与 Discord 连接!
? Chat-Channels
Chat-Channels is a lightweight and flexible Paper plugin that allows players to switch between multiple chat channels, each with its own formatting and full Discord integration (webhooks + bot sync) ?.
Perfect for servers that want clean, organized communication between players, staff, and communities — both in-game and on Discord.
✨ Features
- ? Multiple customizable chat channels
- ? Switch channels easily with a command
- ?️ Custom prefixes per channel
- ? Staff-only channels (OP restricted)
- ? Discord webhook integration (Minecraft → Discord)
- ? Discord bot integration (Discord → Minecraft)
- ? Sync specific Discord channels with in-game channels
- ? Player avatars in Discord messages (webhooks)
- ? Full color support (including HEX colors)
- ? Optional Vault integration (prefix & suffix support)
- ? Hot reload with automatic bot restart if token changes
- ⚡ Lightweight and simple configuration
- ? Global chat support (vanilla + optional Discord sync)
? Vault Support (Optional)
If you install Vault (with plugins like LuckPerms):
- ? Player prefixes & suffixes are automatically applied
- ? Colors are fully supported
- ? Chat formatting becomes more dynamic and customizable
No configuration required — just install Vault.
If Vault is not installed, the plugin will still work normally.
? Commands
/channel <name> - ? Switch to a channel
/channel reload - ? Reload configuration (OP only)
⚙️ Configuration
Each channel can be fully customized in config.yml:
discord:
token: "" # Optional (enables Discord bot)
channels:
global:
prefix: "[Global]"
webhook: "" # Optional
discord-channel-id: "" # Optional
staff:
prefix: "[Staff]"
webhook: "YOUR_WEBHOOK_URL" # Optional
discord-channel-id: "" # Optional
- ?️
prefix → How the channel appears in chat
- ?
webhook → Sends Minecraft messages to Discord (optional)
- ?
discord-channel-id → Sync Discord → Minecraft (optional)
- ?
discord.token → Enables the Discord bot (optional)
- ? Supports HEX colors (e.g.
&#FFAA00)
- ? Colors are automatically cleaned when sent to Discord
? Installation
- ? Download the latest
.jar
- ? Place it in your server's
plugins folder
- ▶️ Start or restart your server
- ? Edit
config.yml to customize channels
⚙️ How it works
- ? Players are automatically assigned to the global channel
- ? Use
/channel to switch between available channels
- ? Messages are only visible to players in the same channel
- ? Messages can be sent to Discord via webhooks (optional)
- ? Discord messages can appear in Minecraft (optional)
?️ Channel System
-
? Global channel
- Uses normal Minecraft chat
- Optional Discord sync
-
? Staff channel
- Only accessible by OP players
- Private communication
-
⚙️ Custom channels
- Fully configurable
- Unlimited possibilities
? Discord Bot Setup
1️⃣ Create a Discord Application
- Go to:
- Click "New Application"
- Give it a name and create it
2️⃣ Create the Bot
-
Go to the "Bot" tab
-
Click "Add Bot"
-
Enable the following:
- ✅ Public Bot
- ✅ Server Members Intent
- ✅ Message Content Intent
-
Copy the TOKEN and put it in your config.yml:
discord:
token: "YOUR_BOT_TOKEN"
3️⃣ Invite the Bot to your Server
- Go to OAuth2 → URL Generator
- Select:
Scopes:
Bot Permissions:
- View Channels
- Send Messages
- Read Message History
- Copy the generated URL
- Open it in your browser
- Add the bot to your server
? How to get a Channel ID
- Go to Discord settings → Advanced
- Enable Developer Mode
- Right-click a channel → Copy ID
- Paste it in your config (optional):
discord-channel-id: "123456789012345678"
? How to create a Webhook
- Go to your Discord channel
- Click ⚙️ Edit Channel
- Go to Integrations → Webhooks
- Click New Webhook
- Copy the webhook URL
Then paste it in your config (optional):
webhook: "https://discord.com/api/webhooks/..."
? Notes
- ? Only players can use commands
- ⚙️ Works with Paper 1.21+
- ? Uses YAML configuration
- ? Discord integration is fully optional
? Future ideas
- ? Permission-based channels (LuckPerms deeper integration)
- ? More chat formatting options
- ? Channel-specific settings (cooldowns, filters)
- ?️ GUI for channel selection
? Author
Developed by Wilkcraft
? License
This project is licensed under the MIT License - see the LICENSE file for details.
? Organize your server chat and connect it with Discord!
评论 0
登录后参与评分
还没有评论,来抢沙发吧