removeConnection

abstract fun removeConnection(@NotNull connection: @NotNull UdpServerConnection): Boolean

Removes a connection from the connection map. This method calls UdpClientDisconnectedEvent after removing the connection from the map.

Return

true if the connection was successfully removed, false if the connection was not found.

Parameters

connection

The UDP server connection to remove.


abstract fun removeConnection(@NotNull player: @NotNull VoiceServerPlayer): Boolean

Removes a connection by player from the connection map. This method calls UdpClientDisconnectedEvent after removing the connection from the map.

Return

true if the connection was successfully removed, false if the connection was not found.

Parameters

player

The player associated with the connection to remove.


abstract fun removeConnection(secret: UUID): Boolean

Removes a connection by secret from the connection map. This method calls UdpClientDisconnectedEvent after removing the connection from the map.

Return

true if the connection was successfully removed, false if the connection was not found.

Parameters

secret

The secret associated with the connection to remove.