DiscordGate

插件

· 作者 Red_wolf2467

要求玩家在加入服务器前必须关联 Discord 账号。支持与 BaxiBot 集成。

0 本站下载 0 关注 更新于 2 周前

最新 1.5.4+velocity · 26.3 · Velocity

一键开服(送7天)

DiscordGate

将你的 Minecraft 服务器通过 Discord 进行访问控制。只有已绑定的玩家才能加入。

由 BaxiBot 提供支持。

流程

  1. 玩家加入服务器 - 被踢出并获取验证码
  2. 在 Discord 中执行 /mc link <code>
  3. BaxiBot 验证 - 加入白名单
  4. 玩家可以正常加入

功能

  • Discord gated 白名单
  • 兼容 Bedrock/Geyser
  • /dg(状态/验证码)、/dgunlink
  • 自动分配角色、公告频道、绑定时发送私信
  • MC ↔ Discord 聊天桥接
  • Velocity 独立支持

命令

游戏中

命令 权限 描述
/dg all 状态/验证码
/dg unlink all 解绑
/dg announce [--discord] <msg> admin 广播
/dg reload / lock / unlock admin 服务器控制
/dg admin link/unlink <player> admin 手动绑定/解绑

Discord /mc link <code> · /mc unlink · /mc status · /mc admin unlink/lookup <user>

设置 — Paper

port: 4321
bind-address: "0.0.0.0"
secret: "your-secret"

Dashboard → MC Link → API URL + secret → 启用。

设置 - Velocity

BaxiBot - Velocity :4321 → Backends
port=4321
bind-address=0.0.0.0
secret=your-secret
kick-message=<red>Not linked!</red> /mc link {token}
token-ttl-minutes=10

Backends: white-list=false, not internet-facing.

Cross-chat (Velocity network)

Needs both plugins. Same secret everywhere.

Each Paper backend:

chat-bridge-enabled: true
chat-relay-source: "paper"

Velocity:

chat-bridge-enabled=true
chat-relay-source=paper

Dashboard: enable cross-chat, set channel + webhook URL.

Troubleshooting

  • No MC-Discord: check Paper log for 401 (secret mismatch)
  • No Discord→MC: dashboard API URL not pointing at Velocity
  • Duplicate messages: chat-relay-source missing on Velocity

Requirements

  • Paper 1.21.1+ or Velocity 3.3+ (with Paper backend)
  • BaxiBot in your Discord server

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源