ClientInfo

Description

ClientInfo is a central plugin for recording data about the client, e.g. Health, position, and some auxillary information like the player list. Plugins subscribing to ClientInfo’s events don’t have to independently track this information on their own.

Events

client_login_success

Client Info is done processing the Login Success packet

client_join_game

Client Info is done processing the Join Game packet

Payload

GameInfo()
client_spawn_update

Client Info is done processing the Spawn Position packet

Payload

Position()
client_health_update

When the players health changes

Payload

PlayerHealth()
client_death

When the player health becomes 0.0

Payload

PlayerHealth()
client_position_update

When the player is moved by the server

Payload

PlayerPosition()
client_add_player

Player added to the player list

Payload

PlayerListItem()
client_update_player

Player info is updated on the player list

Payload

PlayerListItem()
client_remove_player

Player removed from the player list

Payload

PlayerListItem()

Methods and Attributes

class spockbot.plugins.helpers.clientinfo.ClientInfo
eid

int

Entity ID of the player

name

str

Player’s Username

uuid

str

Player’s UUID

abilities

Abilities

Player’s current movement state and speed

game_info

GameInfo

Information about the current world/server

spawn_position

Position

Players initial position

health

PlayerHealth

Player’s health, food and saturation

position

PlayerPosition

Player’s current position

player_list

dict

List of all players in the server

eye_pos

PlayerPosition

Player’s eye position

eye_pos
reset()

Resets the information in ClientInfo