-
Notifications
You must be signed in to change notification settings - Fork 2
2.2 Forge端事件类型
17TheWord edited this page Apr 10, 2024
·
5 revisions
字段名 | 数据类型 | 可能的值 | 说明 |
---|---|---|---|
nickname | String | 玩家昵称 | |
uuid | String | 玩家 UUID | |
ipAddress | String | 玩家 IP | |
speed | float | 玩家速度 | |
is_flying | bool | True/False | 玩家是否飞行 |
is_swimming | bool | True/False | 玩家是否游泳 |
is_sleeping | bool | True/False | 玩家是否睡觉 |
is_blocking | bool | True/False | 玩家是否阻挡 |
game_mode | str | survival/creative/adventure/spectator | 玩家游戏模式 |
block_x | int | 方块 X 坐标 | |
block_y | int | 方块 Y 坐标 | |
block_z | int | 方块 Z 坐标 |
字段名 | 数据类型 | 可能的值 | 说明 |
---|---|---|---|
server_name | String | 收到事件的服务器名称 | |
post_type | String | message | 上报类型 |
sub_type | String | chat | 子类型 |
event_name | String | ServerChatEvent | 事件名称 |
player | Player | 发送消息的玩家 | |
message | Message | 发送的消息 |
字段名 | 数据类型 | 可能的值 | 说明 |
---|---|---|---|
server_name | String | 收到事件的服务器名称 | |
post_type | String | notice | 上报类型 |
sub_type | String | join | 子类型 |
event_name | String | PlayerLoggedInEvent | 事件名称 |
player | Player | 加入的玩家 |
字段名 | 数据类型 | 可能的值 | 说明 |
---|---|---|---|
server_name | String | 收到事件的服务器名称 | |
post_type | String | notice | 上报类型 |
sub_type | String | quit | 子类型 |
event_name | String | PlayerLoggedOutEvent | 事件名称 |
player | Player | 离开的玩家 |
字段名 | 数据类型 | 可能的值 | 说明 |
---|---|---|---|
server_name | String | 收到事件的服务器名称 | |
post_type | String | notice | 上报类型 |
sub_type | String | death | 子类型 |
event_name | String | PlayerRespawnEvent | 事件名称 |
player | Player | 重生的玩家 |