? 网站:
? Dynamic Discord UM+
一款自包含、高性能的 Minecraft Discord 状态机器人插件
Dynamic Discord UM+ 是一款现代化的 Spigot/Paper 插件,无需任何外部机器人托管即可将你的 Minecraft 服务器与 Discord 无缝连接。该插件不依赖有限的仅 Java 实现的 Discord 方案,而是自动部署并管理一个完整的 Node.js 环境,直接置于你的服务器目录中,从而提供强大、可靠且功能丰富的 Discord 状态系统。
✨ 主要特性
? 实时服务器状态
- 在配置的 Discord 频道中维护一条持久的、置顶的嵌入消息 (embed)
- 以可配置的间隔时间自动更新 (默认:30 秒)
- 显示实时服务器数据:
- 在线玩家数 / 最大玩家数
- 服务器运行时间
- 延迟 (Ping)
- 自动获取并显示:
? 智能嵌入系统
- 在线模式
- 可自定义嵌入颜色 (默认:绿色)
- 完整的实时统计数据
- 离线模式
- 立即切换为 OFFLINE (红色嵌入)
- 显示服务器宕机的确切时间
- 横幅支持
⚡ 混合技术
- 基于 discord.js 打造现代、响应式的 Discord 机器人体验
- 使用 minecraft-server-util 进行准确的外部 Ping 检测
? 零麻烦安装
- 无需手动设置 Node.js
- 自动检测操作系统 (Windows / Linux)
- 直接将隔离的 Node.js 二进制文件下载到插件文件夹中
- 首次启动时自动安装所有必需的 npm 包
- 完全自包含且便携
⚙️ 配置
所有设置均通过简单的 config.yml 文件进行管理:
? 机器人设置
- Discord 机器人令牌 (Bot Token)
- 目标频道 ID
? 服务器详情
? 视觉自定义
- 在线和离线状态的自定义 十六进制颜色
- 开启或关闭横幅图片
⚡ 性能
- 可调整更新间隔,以平衡实时准确性和 Discord API 使用情况
? 技术概览
? 初始化
- 服务器启动时,插件会检查本地是否存在
node 目录
- 如果缺失,它将下载与主机 OS 兼容的便携式 Node.js 运行时 (v18.x)
? Java ↔ Node 桥接
- 提取捆绑的
bot.js
- 自动安装所需的 npm 依赖项
▶ 执行
- 将 Discord 机器人作为受管理的 Node.js 子进程 启动
? 优雅关机处理
- 当 Minecraft 服务器停止或崩溃时:
- 插件会通知机器人将 Discord 嵌入更新为 OFFLINE
- 确保用户始终看到正确的服务器状态
- 随后干净地终止 Node.js 进程
Dynamic Discord UM+ 提供了一种简洁、强大且具有前瞻性的方式,让你的 Discord 社区随时了解服务器动态——这一切都内置于你的 Minecraft 服务器之中。
注意:不适用于带有 DDoS 防护的服务器。
? WEBSITE:
? Dynamic Discord UM+
A Self-Contained, High-Performance Discord Status Bot for Minecraft
Dynamic Discord UM+ is a modern Spigot/Paper plugin that seamlessly connects your Minecraft server to Discord without any external bot hosting. Instead of relying on limited Java-only Discord implementations, the plugin automatically deploys and manages a full Node.js environment directly inside your server directory, delivering a powerful, reliable, and feature-rich Discord status system.
✨ Key Features
? Real-Time Server Status
- Maintains one persistent, pinned embed message in a configured Discord channel
- Updates automatically at a configurable interval (default: 30 seconds)
- Displays live server data:
- Online Players / Max Players
- Server Uptime
- Latency (Ping)
- Automatically fetches and displays:
- Minecraft Server Version
- Server Country / Location
? Smart Embed System
- Online Mode
- Customizable embed color (default: green)
- Full real-time statistics
- Offline Mode
- Instantly switches to OFFLINE (red embed)
- Displays the exact time the server went down
- Banner Support
- Optional custom server banner image displayed in the embed
⚡ Hybrid Technology
- Powered by discord.js for a modern, responsive Discord bot experience
- Uses minecraft-server-util for accurate external pings
- Supports both Java Edition and Bedrock Edition servers
? Zero-Hassle Installation
- No manual Node.js setup required
- Automatic OS detection (Windows / Linux)
- Downloads an isolated Node.js binary directly into the plugin folder
- Automatically installs all required npm packages on first startup
- Fully self-contained and portable
⚙️ Configuration
All settings are managed through a simple config.yml file:
? Bot Settings
- Discord Bot Token
- Target Channel ID
? Server Details
- Server IP
- Server Port
- Display Name
? Visual Customization
- Custom Hex colors for Online and Offline states
- Toggle banner image on or off
⚡ Performance
- Adjustable update interval to balance real-time accuracy and Discord API usage
? Technical Overview
? Initialization
- On server startup, the plugin checks for a local
node directory
- If missing, it downloads a portable Node.js runtime (v18.x) compatible with the host OS
? Java ↔ Node Bridge
- Extracts the bundled
bot.js
- Installs required npm dependencies automatically
▶ Execution
- Launches the Discord bot as a managed Node.js sub-process
? Graceful Shutdown Handling
- When the Minecraft server stops or crashes:
- The plugin signals the bot to update the Discord embed to OFFLINE
- Ensures users always see the correct server state
- Cleanly terminates the Node.js process afterward
Dynamic Discord UM+ delivers a clean, powerful, and future-proof way to keep your Discord community informed — all from inside your Minecraft server.
Note: Does not work on servers with DDoS protection.
评论 0
登录后参与评分
还没有评论,来抢沙发吧