class
Rosegold::ChatManager
- Rosegold::ChatManager
- Reference
- Object
Overview
Manages chat message signing, salt generation, and acknowledgment tracking according to the Minecraft 1.21.8 protocol requirements.
Defined in:
rosegold/chat_manager.crConstant Summary
-
MAX_LAST_SEEN_MESSAGES =
20
-
SIGNATURE_SIZE =
256
Constructors
Instance Method Summary
-
#add_last_seen_signature(signature : Bytes)
Add a received message signature to the last seen list
-
#increment_message_count
Increment message count (used when receiving messages from server)
-
#public_key_bytes : Bytes | Nil
Get public key bytes for server authentication (if needed)
-
#reset_session
Reset chat session (useful for reconnections)
-
#send_chat(message : String) : Bool
Send chat message or command, automatically determining the correct method based on the message content and protocol version
-
#send_command(command : String) : Bool
Send a command with proper signing
-
#send_message(message : String) : Bool
Send a regular chat message with proper signing and acknowledgment
Constructor Detail
Instance Method Detail
Add a received message signature to the last seen list
Send chat message or command, automatically determining the correct method based on the message content and protocol version
Send a regular chat message with proper signing and acknowledgment