getPlayerById

abstract fun getPlayerById(@NotNull playerId: @NotNull UUID): Optional<VoicePlayerInfo>

Gets voice player information by player unique identifier.

Return

An optional containing the voice player information if found, or empty if not found.

Parameters

playerId

The unique identifier of the player.