Message Lock
This mod allows you to lock the chat to a specific player using the simple command /msglock <player>. To remove the lock, just type /msglock without parameters.
The system automatically unlocks the chat in two cases: when the target player leaves the server or when you yourself exit the game. This provides convenience and prevents accidentally sending messages to the wrong recipient.
For greater convenience and to match the vanilla style, alternative commands are available: /telllock and /wl. All of them perform the same chat locking function.
The mod requires Fabric API and Fabric Language Kotlin to work.