getPlayerById
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
playerId
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
playerId
The unique identifier of the player.
useServerInstance
If true, the method will use the server instance from McLib if the VoicePlayer is not found in the VoicePlayerManager map.