get Player By Id
Gets a voice player by their unique identifier.
Return
An optional containing the voice player if found, or an empty optional if not found.
Parameters
player Id
The unique UUID of the player.
abstract fun getPlayerById(@NotNull playerId: @NotNull UUID, useServerInstance: Boolean): Optional<P>
Gets a voice player by their unique identifier.
Return
An optional containing the voice player if found, or an empty optional if not found.
Parameters
player Id
The unique identifier of the player.
use Server Instance
If true, the method will use the server instance from McLib if the VoicePlayer is not found in the VoicePlayerManager map.