VelocityConnectionManager
class VelocityConnectionManager(plugin: Plugin, pluginVersion: String, logger: Logger, debug: DebugLogger = DebugLogger.Disabled, crossServerChatManager: CrossServerChatManager? = null, crossServerDirectMessageManager: CrossServerDirectMessageManager? = null, remotePlayerRegistry: RemotePlayerRegistry? = null) : StoppableService, PluginMessageListener(source)
Manages connection with Velocity proxy
Constructors
Link copied to clipboard
constructor(plugin: Plugin, pluginVersion: String, logger: Logger, debug: DebugLogger = DebugLogger.Disabled, crossServerChatManager: CrossServerChatManager? = null, crossServerDirectMessageManager: CrossServerDirectMessageManager? = null, remotePlayerRegistry: RemotePlayerRegistry? = null)
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
Plugin message received
open fun onPluginMessageReceived(@NotNull channel: @NotNull String, @NotNull connection: @NotNull PlayerConnection, message: @NotNull ByteArray)
Link copied to clipboard
Performs handshake
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 setCrossServerDirectMessageManager(manager: CrossServerDirectMessageManager, registry: RemotePlayerRegistry)
Sets the cross-server direct message manager and remote player registry. Called after initialization to avoid circular dependency.