ConsoleDiscord
ConsoleDiscord 将你的 Minecraft 服务器控制台与 Discord 连接起来。
- 将服务器日志镜像到 Discord 的文本频道中。
- 允许你通过
/mc(斜杠命令)或 !mc(文本命令)从 Discord 运行控制台命令。
如果你希望在不每次打开服务器控制器的情况下监控和管理服务器,这是理想之选。
功能特性
-
? 日志流传输
将服务器日志发送到可配置的 Discord 频道。
-
? 来自 Discord 的命令
直接从 Discord 执行控制台命令:
-
? 访问控制
限制对特定 Discord 用户 ID 和/或单个命令频道的访问权限。
-
⚙️ 可配置的日志间隔
log-flush-ticks 控制缓冲的日志行发送频率。
-
? 调试日志记录
可选的 JDA 状态更改调试日志记录(debug-status-logging)。
-
? 无需重启即可重载
/cdr reload 重新加载配置并在需要时重新连接到 Discord。
需求
- 服务器: Paper / 兼容 Bukkit 的服务器
- Minecraft: 1.21.x (api-version:
1.21)
- Java: 21
- Discord: 你自己的机器人
- 机器人令牌 (Bot token)
- 权限包括:
- 读取和发送日志/命令频道中的消息
- 使用斜杠命令(用于启用时的
/mc)
安装
-
放入 jar 文件
将 ConsoleDiscord-1.0.0.jar 放入服务器的 plugins/ 文件夹中。
-
启动服务器
首次启动时,插件将在其文件夹中创建一个 config.yml 文件。
-
编辑配置文件 (plugins/ConsoleDiscord/config.yml)
bot-token: "YOUR_DISCORD_BOT_TOKEN"
# 服务器日志的文本频道
log-channel-id: "123456789012345678"
# 可选:允许使用 /mc 和 !mc 的频道
command-channel-id: ""
# 谁被允许使用 /mc 和 !mc(用户 ID)。
# 如果为空,则允许所有人。
allowed-user-ids:
- "123456789012345678"
# 缓冲的日志消息多久刷新一次发送到 Discord(以刻为单位)
log-flush-ticks: 40
# 将 JDA 状态更改(连接、断开等)记录到服务器日志中
debug-status-logging: false
ConsoleDiscord
ConsoleDiscord connects your Minecraft server console with Discord.
- Mirrors your server log into a Discord text channel.
- Lets you run console commands from Discord via
/mc (slash command) or !mc (text command).
Perfect if you want to monitor and administer your server from Discord without opening the server console every time.
Features
-
🔁 Log streaming
Sends your server log to a configurable Discord channel.
-
💬 Commands from Discord
Execute console commands directly from Discord:
- Slash command
/mc
- Optional text command
!mc in a specific channel
-
🔐 Access control
Limit access to specific Discord user IDs and/or to a single command channel.
-
⚙️ Configurable log interval
log-flush-ticks controls how often buffered log lines are sent to Discord.
-
🧪 Debug logging
Optional debug logging for JDA status changes (debug-status-logging).
-
🔄 Reload without restart
/cdr reload reloads the config and reconnects to Discord if needed.
Requirements
- Server: Paper / Bukkit-compatible server
- Minecraft: 1.21.x (api-version:
1.21)
- Java: 21
- Discord: Your own bot
- Bot token
- Permissions to:
- Read and send messages in the log/command channels
- Use slash commands (for
/mc, if enabled)
Installation
-
Drop the jar
Put ConsoleDiscord-1.0.0.jar into your server’s plugins/ folder.
-
Start the server
On first startup, the plugin will create a config.yml file in its folder.
-
Edit the config (plugins/ConsoleDiscord/config.yml)
bot-token: "YOUR_DISCORD_BOT_TOKEN"
# Text channel for server logs
log-channel-id: "123456789012345678"
# Optional: channel where /mc and !mc may be used
command-channel-id: ""
# Who is allowed to use /mc and !mc (user IDs).
# If empty, everyone is allowed.
allowed-user-ids:
- "123456789012345678"
# How often (in ticks) buffered log messages are flushed to Discord
log-flush-ticks: 40
# Log JDA status changes (connect, disconnect, etc.) to the server log
debug-status-logging: false
评论 0
登录后参与评分
还没有评论,来抢沙发吧