ConnectionHub

interface ConnectionHub

Hub interface for managing packet-level connections for players.

Inheritors

Functions

Link copied to clipboard
abstract fun getCoroutineDispatcher(player: Player): CoroutineDispatcher

Gets a CoroutineDispatcher that executes tasks on the player's Netty event loop.

Link copied to clipboard
abstract fun getNetworkSettings(player: Player): NetworkSettings

Gets the network settings (e.g. protocol version, latency) for a player.

Link copied to clipboard
abstract fun injectPlayer(player: Player)

Injects a player into the Netty pipeline to begin packet interception.

Link copied to clipboard
abstract fun removePlayer(player: Player)

Removes a player from the Netty pipeline, stopping packet interception.

Link copied to clipboard
abstract fun sendPacket(player: Player, packet: Any)

Sends a raw NMS packet object to the player.