C2SLoginMojangPacket

data class C2SLoginMojangPacket(val name: String, val uuid: UUID, val allowMessages: Boolean) : AxochatPacket.C2S

After the client received a MojangInfo packet and authenticating itself with mojang, it has to send a LoginMojang packet to the server. After the server receives a LoginMojang packet, it will send Success if the login was successful.

Parameters

name

name needs to be associated with the uuid.

uuid

uuid is not guaranteed to be hyphenated.

allowMessages

If allow_messages is true, other clients may send private messages to this client.

Constructors

Link copied to clipboard
constructor(name: String, uuid: UUID, allowMessages: Boolean)

Properties

Link copied to clipboard
@SerializedName(value = "allow_messages")
val allowMessages: Boolean
Link copied to clipboard
@SerializedName(value = "name")
val name: String
Link copied to clipboard
@SerializedName(value = "uuid")
val uuid: UUID