getFriend

fun getFriend(username: String): NameAndUUID?

Looks up a friend by their Minecraft username.

The comparison is case-insensitive.

Return

the matching friend entry, or null if no friend with that name exists

Parameters

username

the username to search for


Looks up a friend by their UUID.

Return

the matching friend entry, or null if no friend with that UUID exists

Parameters

uuid

the UUID to search for


fun getFriend(nameAndUUID: NameAndUUID): NameAndUUID?

Looks up a friend by a full friend entry.

This uses structural equality to find an exact match.

Return

the matching friend entry, or null if it is not present

Parameters

nameAndUUID

the friend entry to search for