Get both the name and id of a player from either their name or id
Id or name of player
Optional
onMissing: "throw"Pass "throw" or omit to throw an error if the player is not found
Object containing id and name of player
Get both the name and id of a player from either their name or id
Id or name of player
Pass "return-null" to return null if the player is not found
Object containing id and name of player if it exists, or handles according to onMissing
Get both the name and id of a player from either their name or id
Param: idOrName
Id or name of player
Param: onMissing
Pass "throw" to throw an error if the player is not found, or "return-null" to return null
Returns
Object containing id and name of player if it exists, or handles according to onMissing