DisCraft

模组

· 作者 littlechasiu

适用于 Fabric 的 Discord-Minecraft 聊天桥接器,支持 Placeholder API。

0 本站下载 0 关注 更新于 3 年前

需要前置:Fabric Language Kotlin、Fabric API

最新 0.1 · 1.19.2 · Fabric

一键开服(送7天)

DisCraft

适用于 Fabric 需要 Fabric API 需要 Fabric Kotlin

在 GitHub 上获取 在 Modrinth 上获取 在 Discord 上找到我

一个用于 Fabric 的 Discord 聊天桥接模组,使用 Placeholder API。在游戏中发送消息并将其中继到 Discord,反之亦然。还支持 Discord 提及、表情符号和附件。

配置

DisCraft 可以通过编辑服务器配置目录中的 discraft.json 文件进行配置。

{
  "token": "DISCORD_BOT_TOKEN",
  "webhook": "DISCORD_WEBHOOK_URL",
  "server": 241543903,
  "chat_channel": 241543903,

  // 显示在特定服务器事件后的消息格式。
  // 支持 Placeholder API 的简化文本格式。
  // 所有非消息事件在 Discord 上以嵌入(embed)形式显示。

  "server_started": ":white_check_mark: Server started",
  "server_stopped": ":octagonal_sign: Server stopped",
  "player_join": "%player:name% joined the game",
  "player_leave": "%player:name% left the game",

  "advancement_goal": "%player:name% has reached the goal %disc:advancement%!",
  "advancement_task": "%player:name% has made the advancement %disc:advancement%!",
  "advancement_challenge": "%player:name% has completed the challenge %disc:advancement%!",

  "discord_to_mc": "<aqua>[DC] %disc:nickname%</aqua>: %disc:message%",
  "discord_to_mc_reply": "<aqua>[DC] %disc:nickname%</aqua> <gray>(reply to</gray> %disc:reply_to%<gray>)</gray>: %disc:message%",

  // 获取玩家头像的 URL
  "avatar_url": "https://crafatar.com/avatars/%s?overlay"
}

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源