CrossServerDirectMessageRelay

class CrossServerDirectMessageRelay(server: ProxyServer, logger: Logger)(source)

Routes cross-server direct messages to a single target server.

Unlike CrossServerChatRelay which broadcasts, this resolves the requested target server and player, then forwards the message only to that server. On failure it sends a PluginMessage.DirectMessageError back to the source.

Constructors

Link copied to clipboard
constructor(server: ProxyServer, logger: Logger)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun relay(message: PluginMessage.DirectMessageRelay, sourceServer: RegisteredServer)

Relays a direct message to the target server, or returns an error to the source.