Package-level declarations
Types
A client can send this packet to ban other users from using this chat.
To log in using a json web token, the client has to send a LoginJWT packet. it will send Success if the login was successful.
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.
The content of this packet will be sent to every client as Message if it fits the validation scheme.
The content of this packet will be sent to the specified client as PrivateMessage if it fits the validation scheme.
To log in using LoginJWT, a client needs to own a json web token. This token can be retrieved by sending RequestJWT as an already authenticated client to the server. The server will send a NewJWT packet to the client.
To log in via mojang, the client has to send a RequestMojangInfo packet. The server will then send a MojangInfo to the client. This packet does not have a body.
A client can send this packet to unban other users.
Packet Deserializer
Packet Serializer
This packet may be sent at any time, but is usually a response to a failed action of the client.
This packet will be sent to every authenticated client if another client successfully sent a message to the server.
After the client sent the server a RequestMojangInfo packet, the server will provide the client with a session_hash. A session hash is synonymous with a server id in the context of authentication with Mojang. The client has to send a LoginMojang packet to the server after authenticating itself with Mojang.
After the client sent the server a RequestJWT packet, the server will provide the client with json web token. This token can be used in the LoginJWT packet.
This packet will be sent to an authenticated client with allow_messages turned on, if another client successfully sent a private message to the server with the id.
This packet is sent after either LoginMojang, LoginJWT, BanUser or UnbanUser were processed successfully.