getPlayerByName
Gets a voice player by their name.
Return
An optional containing the voice player if found, or an empty optional if not found.
Parameters
playerName
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
playerName
The name of the player.
useServerInstance
If true, the method will use the server instance from McLib if the VoicePlayer is not found in VoicePlayerManager map.