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