PluginMessage

sealed interface PluginMessage(source)

Plugin message definitions for Paper-Velocity communication

Inheritors

Types

Link copied to clipboard
@Serializable
data class GlobalChatMessage(val messageId: String, val serverName: String, val playerId: String, val playerName: String, val message: String, val timestamp: Long = System.currentTimeMillis()) : PluginMessage

Global chat message (Paper ↔ Velocity ↔ Paper)

Link copied to clipboard
@Serializable
data class Handshake(val pluginVersion: String, val protocolMajor: Int, val protocolMinor: Int, val protocolPatch: Int) : PluginMessage

Handshake message (Paper → Velocity)

Link copied to clipboard
@Serializable
data class HandshakeResponse(val compatible: Boolean, val velocityVersion: String, val error: String? = null, val protocolMajor: Int = ProtocolVersion.MAJOR, val protocolMinor: Int = ProtocolVersion.MINOR, val protocolPatch: Int = ProtocolVersion.PATCH) : PluginMessage

Handshake response message (Velocity → Paper)

Link copied to clipboard
@Serializable
data object StatusRequest : PluginMessage

Status request message (Paper → Velocity)

Link copied to clipboard
@Serializable
data class StatusResponse(val velocityVersion: String, val protocolVersion: String, val online: Boolean) : PluginMessage

Status response message (Velocity → Paper)