VelocityConnectionManager

class VelocityConnectionManager(plugin: Plugin, pluginVersion: String, logger: Logger, crossServerChatManager: CrossServerChatManager? = null) : PluginMessageListener(source)

Manages connection with Velocity proxy

Constructors

Link copied to clipboard
constructor(plugin: Plugin, pluginVersion: String, logger: Logger, crossServerChatManager: CrossServerChatManager? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard
sealed class HandshakeResult

Handshake result

Functions

Link copied to clipboard

Gets last error message

Link copied to clipboard

Gets current connection state

Link copied to clipboard

Gets Velocity version (if connected)

Link copied to clipboard

Initialize

Link copied to clipboard
open override fun onPluginMessageReceived(channel: String, player: Player, message: ByteArray)

Plugin message received

@ApiStatus.Experimental
open fun onPluginMessageReceived(@NotNull channel: @NotNull String, @NotNull connection: @NotNull PlayerConnection, message: @NotNull ByteArray)
Link copied to clipboard
Link copied to clipboard

Sends status request

Link copied to clipboard

Sets the cross-server chat manager Called after initialization to avoid circular dependency

Link copied to clipboard
fun shutdown()

Shutdown