DiscordPort
DiscordPort 是一款 Fabric 模组,以零摩擦的方式将你的 Minecraft 服务器与 Discord 连接。无需插件、无需 Bukkit —— 在 Fabric 专用服务器上原生运行。
功能
- 双向聊天中继 — 消息在 Minecraft 和 Discord 之间实时流通,并通过 Webhook 显示玩家皮肤头像。
- 事件通知 — 加入、退出、死亡、进度达成以及服务器启动/停止等事件均会中继到 Discord。
- 状态频道 — 语音频道名称实时更新,显示当前在线人数、TPS 和内存使用情况。
- 持久状态嵌入 — 一条始终显示你服务器当前状态的 Discord 消息。使用
/status 命令更新它。
- 账号绑定 — 玩家在在游戏中运行
/link,然后在 Discord 上使用 /link <code> 确认。可选择要求玩家在加入前完成绑定。
- 日志频道 — 将服务器控制台流式传输到 Discord,并可选择从中执行命令。
- 20 种语言 — 首次启动时从操作系统自动检测语言。
- 35+ 个占位符 —
{TPS}、{ONLINE_PLAYERS}、{RAM_USAGE} 等大量占位符,支持完全自定义。
兼容性
| 加载器 |
支持情况 |
| Fabric |
✅ |
| Quilt |
❌ |
| Forge |
❌ |
| NeoForge |
❌ |
Minecraft: 1.21+
Java: 21+
Fabric Loader: 0.15+
Fabric API: 必需
设置指南
1. 创建 Discord 机器人
- 前往 discord.com/developers/applications → New Application(新建应用程序)
- 打开 Bot(机器人)选项卡 → Add Bot(添加机器人)→ Reset Token(重置令牌)→ 复制令牌
2. 启用 Intents(意图)
- 在 Bot(机器人)选项卡中,启用 Server Members Intent(服务器成员意图)和 Message Content Intent(消息内容意图)→ Save Changes(保存更改)
3. 邀请机器人
- 前往 OAuth2 → URL Generator(URL 生成器)→ 勾选
bot + applications.commands
- 权限:
Send Messages(发送消息)、Read Message History(读取消息历史)、Manage Webhooks(管理 Webhook)、Manage Channels(管理频道)
- 在浏览器中打开生成的 URL 并将机器人邀请到你的服务器
4. 获取 ID
- 在 Discord 设置中启用开发者模式
- 右键点击你的服务器图标 → 复制服务器 ID → 粘贴为
bot.guild_id
- 右键点击你的文本频道 → 复制频道 ID → 粘贴为路由
id
5. 配置并启动
- 将 JAR 文件放入
mods/ 目录(需与 Fabric API 共存),启动服务器后会自动生成 config/discordport/config.yml
- 填写
bot.token、bot.guild_id 以及你的频道 ID,然后重启服务器
DiscordPort 是一款将 Fabric 服务器与 Discord 无缝连接的原生 Fabric 模组。无需 Bukkit/Spigot 即可运行。
功能列表
- 双向聊天中继 — 实时在 Minecraft 和 Discord 之间相互转发消息。通过 Webhook 将玩家皮肤作为头像显示。
- 事件通知 — 向 Discord 发送加入、退出、死亡、进度解锁以及服务器启动/停止的通知。
- 状态频道 — 根据玩家数量、TPS 和 RAM 使用量实时更新语音频道的名称。
- 持久状态嵌入 — 持续显示服务器当前状态的 Discord 消息。可通过
/status 命令部署。
- 账户绑定 — 在游戏中执行
/link,然后在 Discord 中执行 /link <代码> 完成绑定。支持强制绑定模式。
- 日志频道 — 将服务器控制台流式传输至 Discord。也支持从 Discord 执行命令。
- 支持 20 种语言 — 首次启动时自动检测操作系统语言。
- 35 种以上占位符 — 如
{TPS}、{ONLINE_PLAYERS}、{RAM_USAGE} 等,可自由自定义消息内容。
支持环境
| 加载器 |
支持情况 |
| Fabric |
✅ |
| Quilt |
❌ |
| Forge |
❌ |
| NeoForge |
❌ |
Minecraft: 1.21 及以上
Java: 21 及以上
Fabric Loader: 0.15 及以上
Fabric API: 必需
安装步骤
1. 创建 Discord Bot
- discord.com/developers/applications → New Application
- Bot 选项卡 → Add Bot → Reset Token → 复制令牌
2. 启用 Intents
- Bot 选项卡 → 开启 Server Members Intent 和 Message Content Intent → Save Changes
3. 邀请 Bot
- OAuth2 → URL Generator → 勾选
bot 和 applications.commands
- 权限:
Send Messages、Read Message History、Manage Webhooks、Manage Channels
- 用浏览器打开生成的 URL 以邀请 Bot 到服务器
4. 获取 ID
- 进入 Discord 设置 → 高级 → 开启开发者模式
- 右键点击服务器图标 → 复制 ID → 粘贴到
bot.guild_id
- 右键点击文本频道 → 复制 ID → 粘贴到路由的
id
5. 配置并启动
- 将 JAR 文件与 Fabric API 一起放入
mods/ 目录,然后启动服务器 → 会自动生成 config/discordport/config.yml
- 填写
bot.token、bot.guild_id 以及频道 ID,然后重启
DiscordPort
DiscordPort is a Fabric mod that connects your Minecraft server to Discord with zero friction. No plugins, no Bukkit — runs natively on Fabric dedicated servers.
Features
- Two-way chat relay — Messages flow between Minecraft and Discord in real time, with player skin avatars via webhook.
- Event notifications — Join, quit, death, advancement, and server start/stop are all relayed to Discord.
- Status channels — Keep voice channel names updated with live player count, TPS, and RAM usage.
- Persistent status embed — A single Discord message that always shows your server's current state. Update it with
/status.
- Account linking — Players run
/link in-game, then confirm with /link <code> on Discord. Optionally enforce linking before joining.
- Log channel — Stream your server console to Discord, and optionally run commands from it.
- 20 languages — Language is auto-detected from your OS on first startup.
- 35+ placeholders —
{TPS}, {ONLINE_PLAYERS}, {RAM_USAGE}, and many more for full customization.
Compatibility
| Loader |
Supported |
| Fabric |
✅ |
| Quilt |
❌ |
| Forge |
❌ |
| NeoForge |
❌ |
Minecraft: 1.21+
Java: 21+
Fabric Loader: 0.15+
Fabric API: Required
Setup
1. Create a Discord Bot
- Go to discord.com/developers/applications → New Application
- Open the Bot tab → Add Bot → Reset Token → copy the token
2. Enable Intents
- On the Bot tab, enable Server Members Intent and Message Content Intent → Save Changes
3. Invite the Bot
- Go to OAuth2 → URL Generator → check
bot + applications.commands
- Permissions:
Send Messages, Read Message History, Manage Webhooks, Manage Channels
- Open the generated URL in your browser and invite the bot to your server
4. Get IDs
- Enable Developer Mode in Discord settings
- Right-click your server icon → Copy Server ID → paste as
bot.guild_id
- Right-click your text channel → Copy Channel ID → paste as the route
id
5. Configure & Start
- Drop the JAR into
mods/ alongside Fabric API, start the server — config/discordport/config.yml is generated
- Fill in
bot.token, bot.guild_id, and your channel IDs, then restart
DiscordPort は、Fabric サーバーとDiscordをシームレスに繋ぐ Fabric MOD です。Bukkit/Spigot 不要でネイティブに動作します。
機能一覧
- 双方向チャット中継 — MinecraftとDiscordのメッセージをリアルタイムで相互転送。Webhookでプレイヤーのスキンをアイコンとして表示。
- イベント通知 — 参加・退出・死亡・進捗解除・サーバー起動/停止をDiscordに通知。
- ステータスチャンネル — ボイスチャンネルの名前をプレイヤー数・TPS・RAM使用量でリアルタイム更新。
- 永続ステータス埋め込み — サーバーの現状を常に表示し続けるDiscordメッセージ。
/status で設置。
- アカウント連携 — ゲーム内で
/link → Discordで /link <コード> で連携完了。連携必須モードにも対応。
- ログチャンネル — サーバーコンソールをDiscordへストリーミング。Discordからコマンド実行も可能。
- 20言語対応 — 初回起動時にOSから言語を自動検出。
- 35種以上のプレースホルダー —
{TPS}, {ONLINE_PLAYERS}, {RAM_USAGE} など、メッセージを自由にカスタマイズ。
対応環境
| ローダー |
対応 |
| Fabric |
✅ |
| Quilt |
❌ |
| Forge |
❌ |
| NeoForge |
❌ |
Minecraft: 1.21以上
Java: 21以上
Fabric Loader: 0.15以上
Fabric API: 必須
導入手順
1. Discord Botを作成する
- discord.com/developers/applications → New Application
- Bot タブ → Add Bot → Reset Token → トークンをコピー
2. Intentsを有効にする
- Bot タブ → Server Members Intent と Message Content Intent を ON → Save Changes
3. Botを招待する
- OAuth2 → URL Generator →
bot + applications.commands にチェック
- 権限:
Send Messages、Read Message History、Manage Webhooks、Manage Channels
- 生成URLをブラウザで開いてサーバーに招待
4. IDを取得する
- Discord設定 → 詳細設定 → 開発者モード を ON
- サーバーアイコンを右クリック → IDをコピー →
bot.guild_id に貼り付け
- テキストチャンネルを右クリック → IDをコピー → ルートの
id に貼り付け
5. 設定して起動
- Fabric API と一緒に JARを
mods/ に入れてサーバーを起動 → config/discordport/config.yml が自動生成
bot.token、bot.guild_id、チャンネルIDを記入して再起動
评论 0
登录后参与评分
还没有评论,来抢沙发吧