Direct Message Handler
class DirectMessageHandler(settingsManager: PlayerSettingsManager?, romanjiConverter: RomanjiConverter?)
Manages direct message state including reply targets. Tracks the last player who messaged each player for /reply functionality.
Functions
Link copied to clipboard
Clears message history for a player (called on disconnect).
Link copied to clipboard
Gets the player to reply to. First checks if someone has messaged this player, otherwise falls back to the last person they messaged.
Link copied to clipboard
Records a direct message between two players. Updates both the sender's last recipient and the receiver's last messager.
Link copied to clipboard
Sends a direct message from one player to another. Handles formatting and recording the conversation. Applies romaji-to-Japanese conversion if sender has it enabled.