跳到正文

Console2Discord

作者:bba5696

A mod that outputs everything in the console log to a discord channel using discord's webhook.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Console2Discord
–
This mod mirrors your Minecraft server console logs to a Discord channel using a configurable Webhook.
It provides clean message formatting and simple admin commands for configuration.

Dependencies

  • This mod depends on Fabric API

Features

  • Sends server console output (INFO, WARN, ERROR …) directly to a Discord channel
  • Easy configuration via JSON file or in-game commands

Configuration

{
“webhookUrl”: “https://discord.com/api/webhooks/…”
}


### Commands
Available only to server op:
- ```/console2discord reload```
  Reloads the config from the json file
- ```/console2discord setWebhook <url>```
  Updates the webhook and saves it into the config
### Example Output
![Example Output](https://cdn.modrinth.com/data/cached_images/38af3c313b833ddfd164386148d4d063403fa9e6.png)
### Notes
- The mod is **server-side only** and is not required on clients
- Works with Fabric 1.21.9+
- Make sure to keep your webhook URL private, otherwise **anyone** with this URL can post in your discord channel.

Credit to samxel for this mod, I only continued it for further versions

常见问题

Console2Discord 支持哪些 Minecraft 版本?

Console2Discord 支持 Minecraft Java 版 1.21.10–1.21.11,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Console2Discord 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

bba5696 的其他作品

查看全部 →