removeConnection

open fun removeConnection(@NotNull connection: @NotNull UdpProxyConnection): Boolean

Removes a UDP proxy connection.

Return

true if the removal was successful, false if the connection was not found.

Parameters

connection

The UDP proxy connection to remove.


abstract fun removeConnection(@NotNull connection: @NotNull UdpProxyConnection, @NotNull reason: @NotNull UdpClientDisconnectedEvent.Reason): Boolean

Removes a UDP proxy connection.

Return

true if the removal was successful, false if the connection was not found.

Parameters

connection

The UDP proxy connection to remove.

reason

The reason of the removal.


open fun removeConnection(@NotNull player: @NotNull VoiceProxyPlayer): Boolean

Removes a UDP proxy connection associated with a player.

Return

true if the removal was successful, false if the connection was not found.

Parameters

player

The voice proxy player whose connection should be removed.


abstract fun removeConnection(@NotNull player: @NotNull VoiceProxyPlayer, @NotNull reason: @NotNull UdpClientDisconnectedEvent.Reason): Boolean

Removes a UDP proxy connection associated with a player.

Return

true if the removal was successful, false if the connection was not found.

Parameters

player

The voice proxy player whose connection should be removed.

reason

The reason of the removal.