DirectMessageError

@Serializable
data class DirectMessageError(val messageId: String, val senderId: String, val targetName: String, val targetServerName: String, val reason: PluginMessage.DirectMessageError.Reason = Reason.TARGET_OFFLINE) : PluginMessage(source)

Cross-server direct message delivery failure (Velocity → source Paper)

Constructors

Link copied to clipboard
constructor(messageId: String, senderId: String, targetName: String, targetServerName: String, reason: PluginMessage.DirectMessageError.Reason = Reason.TARGET_OFFLINE)

Types

Link copied to clipboard

Why a cross-server direct message could not be delivered.

Properties

Link copied to clipboard

UUID of the failed relay

Link copied to clipboard

Why delivery failed. Defaults to Reason.TARGET_OFFLINE so that a reason added by a newer peer degrades to the generic failure rather than failing to decode - PluginMessageCodec enables coerceInputValues for exactly this.

Link copied to clipboard

Sender UUID as string (used to locate the sender to notify)

Link copied to clipboard

Target player name that was requested

Link copied to clipboard

Target server name that was requested