getConnectionByPlayerId

abstract fun getConnectionByPlayerId(@NotNull playerId: @NotNull UUID): Optional<C>

Gets the UDP connection by player unique identifier.

Return

An optional containing the UDP connection if found, otherwise empty.