selery.hncom.player

Packets related to a player. The first field of every packet is an hub id that uniquely identifies a player in the hub and never changes until it disconnects.

Members

Classes

Add
class Add

Adds a player to the node.

GamePacket
class GamePacket
Undocumented in source.
Kick
class Kick

Kicks a player from the node and the whole server. When a player is disconnected from the node using this packet the hub will not send the Remove packet.

OrderedGamePacket
class OrderedGamePacket
Undocumented in source.
Remove
class Remove

Removes a player from the node. If the player is removed using Kick or Transfer this packet is not sent.

SerializedGamePacket
class SerializedGamePacket
Undocumented in source.
Transfer
class Transfer

Transfers a player to another node. When a player is transferred from the node the hub will not send the Remove packet and there's no way, for the node, to know whether the player was disconnected or successfully transferred, if not using messages through a user-defined protocol.

UpdateDisplayName
class UpdateDisplayName

Updates the player's display name when it is changed. When this packet is sent by the node a copy is always sent back by the hub.

UpdateLanguage
class UpdateLanguage

Updates the player's language when the client changes it.

UpdateLatency
class UpdateLatency

Updates the latency between the player and the hub.

UpdatePacketLoss
class UpdatePacketLoss

Updates the packet loss between the player and the hub.

UpdatePermissionLevel
class UpdatePermissionLevel

Update the player's permission level. When this packet is sent by the node a copy is always sent back by the hub.

UpdateViewDistance
class UpdateViewDistance

Notifies the node that the player's view distance has been updated client-side. The node may decide to not accept the new view distance and not send the required chunks.

UpdateWorld
class UpdateWorld

Updates the player's world. The player's dimension should be updated by the hub using worldId to identify the world added with AddWorld and removed with RemoveWorld.

Meta

License

MIT

Authors

Kripth