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
    • 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. 首页

Event

有关事件#

事件将更多地偏向于与玩家、互通有关的事件,而非服务端所有实体的事件
如果您想对更多事件进行操作,应该去编写对应服务端的 插件/MOD
本页面是所有的基本事件类型,各服务端的事件类型均继承基本事件且有不同程度扩展
由于服务端版本不同,同服务端的不同版本之间也会大同小异
事件会通过 Websocket 以 Json 的形式分发

服务端支持详情#

原版端:聊天、加入、离开
Velocity:聊天、加入、离开、命令
其余服务端均支持所有事件

字段相关#

已尽力为每个字段填充内容。但在事件统一、多服务端多版本的情况下仍可能存在部分字段为空的情况
缺失值的字段具体如 PlayerAchievementEvent 中 achievement 内的 description,亦或者是 PlayerDeathEvent 中 death 内的部分字段。
如遇到字段确实情况,可提交 Issue 获取帮助。欢迎有能力者在提交 Issue 的同时,提供服务端对应源码的实现示例等
修改于 2025-11-13 13:03:09
上一页
Rcon
下一页
Player
Built with