Protocol V2
首页
相关项目
  • nonebot-adapter-minecraft
  • nonebot-plugin-mcqq
  • mc-plugin
  • koishi-plugin-minecraft-sync-msg
  • zerobot-plugin-mcqq
  • astrbot_plugin_mcqq
  • queqiao_mcdr
  • koishi-plugin-minecraft-adapter
GitHub
首页
相关项目
  • nonebot-adapter-minecraft
  • nonebot-plugin-mcqq
  • mc-plugin
  • koishi-plugin-minecraft-sync-msg
  • zerobot-plugin-mcqq
  • astrbot_plugin_mcqq
  • queqiao_mcdr
  • koishi-plugin-minecraft-adapter
GitHub
  1. API
  • 首页
  • 部署
  • 配置文件
  • 命令
  • 开发 & 构建
  • API
    • Broadcast
    • Title & SubTitle
    • Action Bar
    • Private Message
    • Rcon
  • Event
    • Player
    • PlayerChatEvent
    • PlayerCommandEvent
    • PlayerJoinEvent
    • PlayerQuitEvent
    • PlayerDeathEvent
    • PlayerAchievementEvent
  • 数据模型
    • API
      • Response
    • EventModel
      • Base
        • BaseEvent
        • BaseMessageEvent
        • BaseNoticeEvent
        • BasePlayerMessageEvent
        • BasePlayerNoticeEvent
      • Achievement
        • Display
        • Achievement
      • Death
        • Death
    • Event
      • Player
        • Player
        • PlayerChatEvent
        • PlayerCommandEvent
        • PlayerJoinEvent
        • PlayerQuitEvent
        • PlayerAchievementEvent
        • PlayerDeathEvent
  1. API

Broadcast

ws://127.0.0.1:8080
Broadcast
最后修改时间:2025-11-17 12:01:52

🛰️ WebSocket 接口文档#

📡 接口名称#

广播消息接口(broadcast)

🧭 字段描述#

字段路径类型默认值说明
messagejson-消息内容。参考 Minecraft 文本组件。

🧱 数据结构#

🔹 消息格式#

发送的聊天消息会在前方添加前缀,默认为:[鹊桥]
{
    "api": "broadcast",
    "data": {
        "message": [
            {
                "text": " [群名1]",
                "color": "aqua"
            },
            {
                "text": " 用户",
                "color": "green"
            },
            {
                "text": "说:",
                "color": "white"
            },
            {
                "text": "聊天内容",
                "color": "white"
            }
        ]
    },
    "echo": "1"
}

🔹 返回信息#

{
    "code": 200,
    "post_type": "response",
    "status": "SUCCESS",
    "message": "success",
    "echo": "1"
}

请求参数

Header 参数

修改于 2025-11-17 12:01:52
上一页
API
下一页
Title & SubTitle
Built with