ZDiscord 将 Minecraft 与 Discord 直接连接。玩家可以在两个平台间聊天、查看在线状态、绑定账号、开启工单,并查看个人资料或排行榜。工作人员利用相同的连接来接收控制台日志、警报以及进行私密的工作人员聊天。
如何融入你的服务器
命令使用原生的 Discord 斜杠命令、按钮和选择菜单。一个 JAR 文件即可在 Paper、Folia 和 Spigot 上运行。你可以在配置中切换各个模块的开关。
功能特性
- 聊天桥接:支持双向聊天,具备回复上下文和 Webhook 头像。支持与 SkinsRestorer 配合,并提供 Java 版与基岩版的回退方案。
- 服务器状态:通过更新的 Discord 消息显示玩家数量、TPS(每秒刻数)和内存使用情况。
- 实时统计:综合面板展示在线玩家、服务器性能及当前排名领先者。
- 控制台流式传输:将服务器控制台日志转发至 Discord 频道。
- 账号绑定:通过一次性代码绑定 Discord 和 Minecraft 账号,可选启用“绑定后方可加入”的限制。
- 工作人员聊天:
/sc 命令可切换至一个桥接到 Discord 的仅限工作人员使用的频道。
- 工单系统:玩家可通过 Discord 按钮或
/ticket 命令开启私密的客服支持频道。
- 排行榜:追踪击杀数、死亡数和游戏时长,支持分页、统计项切换和定时刷新。
- 事件消息:将加入、退出、死亡和进度达成等事件发布到 Discord。
- 性能监控器:随时间追踪 TPS 和内存使用情况,并支持可配置的警报。
- 反突袭保护:检测大规模加入行为,并在需要时触发自动锁定机制。
- 命令记录器:将受监视和关键命令的记录发送至工作人员频道。
- 语音状态:当绑定的玩家加入 Discord 语音频道时,显示标签页列表指示器。
- 反应角色:将消息的反应映射到 Discord 角色和游戏内权限。
- 玩家个人资料:
/profile [player] 显示包含玩家头像、NameMC 链接、统计数据及关注按钮的内嵌卡片。
- 关注系统:当被关注的玩家上线时获取私信通知。使用
/following 和 /unfollow 管理订阅关系。
- 匿名告白:
/confess 将内容发布到指定频道,支持冷却时间和自定义内嵌卡片。
- 设置向导:
/setup 可直接从 Discord 配置频道和角色。
- 插件桥接:通过你现有的机器人连接转发 Onlysleep 和 RedstoneReboot 的消息。
要求
- Java 17 或更高版本
- Paper 1.20.4 或更高版本、Folia,或 Spigot 1.20.4 或更高版本
- 一个启用了 Server Members(服务器成员)和 Message Content(消息内容)意图的 Discord 机器人令牌
- 仅在使用可选的 MySQL 存储后端时需要 MySQL 8.0 或更高版本
安装步骤
- 从发布页面下载
ZDiscord-1.4.2.jar。
- 将 JAR 文件放入服务器的
plugins/ 目录中。
- 启动服务器以生成默认的
config.yml 和 messages.yml。
- 打开
plugins/ZDiscord/config.yml 并设置你的机器人令牌和 Discord 服务器 ID。
- 重启服务器。
- 在 Discord 中运行
/setup 以选择频道和角色。
配置
所有设置均位于 plugins/ZDiscord/config.yml 中。面向用户的 Minecraft 文本位于 messages.yml 中。YAML 存储无需数据库即可工作;当你需要共享或更大规模的存储时,可以使用 MySQL。
ZDiscord connects Minecraft and Discord directly. Players chat across both platforms, check who is online, link accounts, open tickets, and view profiles or leaderboards. Staff use the same connection for console logs, alerts, and private staff chat.
How it fits your server
Commands use native Discord slash commands, buttons, and selection menus. One JAR runs on Paper, Folia, and Spigot. You can toggle each module in the configuration.
Features
- Chat bridge: Two-way chat with reply context and webhook avatars. Supports SkinsRestorer with Java and Bedrock fallbacks.
- Server status: An updating Discord message showing player count, TPS, and memory usage.
- Live stats: Combined panel showing online players, server performance, and current leaders.
- Console streaming: Forwards server console logs to a Discord channel.
- Account linking: One-time codes link Discord and Minecraft accounts, with optional link-to-join enforcement.
- Staff chat:
/sc toggles a staff-only channel bridged to Discord.
- Tickets: Players open private support channels from Discord buttons or
/ticket.
- Leaderboards: Track kills, deaths, and playtime with paging, stat switching, and timed refreshes.
- Event messages: Posts joins, quits, deaths, and advancements to Discord.
- Performance monitor: Tracks TPS and memory over time with configurable alerts.
- Anti-raid: Detects mass joins and triggers automated lockdown when needed.
- Command logger: Logs watched and critical commands to a staff channel.
- Voice status: Shows a tab-list indicator when linked players join a Discord voice channel.
- Reaction roles: Maps message reactions to Discord roles and in-game permissions.
- Player profiles:
/profile [player] shows an embed with the player avatar, NameMC link, stats, and a follow button.
- Follow system: Get DM notifications when followed players join. Manage subscriptions with
/following and /unfollow.
- Anonymous confessions:
/confess posts to a designated channel with cooldowns and customizable embeds.
- Setup wizard:
/setup configures channels and roles directly from Discord.
- Plugin bridges: Forwards Onlysleep and RedstoneReboot messages through your existing bot connection.
Requirements
- Java 17 or newer
- Paper 1.20.4 or newer, Folia, or Spigot 1.20.4 or newer
- A Discord bot token with Server Members and Message Content intents enabled
- MySQL 8.0 or newer only when using the optional MySQL storage backend
Installation
- Download
ZDiscord-1.4.2.jar from the releases page.
- Place the JAR in your server's
plugins/ directory.
- Start the server to generate the default
config.yml and messages.yml.
- Open
plugins/ZDiscord/config.yml and set your bot token and Discord server ID.
- Restart the server.
- Run
/setup in Discord to choose channels and roles.
Configuration
All settings live in plugins/ZDiscord/config.yml. User-facing Minecraft text is in messages.yml. YAML storage works without a database; MySQL is available when you need shared or larger-scale storage.
评论 0
登录后参与评分
还没有评论,来抢沙发吧