toPlayers

fun Iterable<UUID>.toPlayers(): List<@Nullable Player>

Converts an iterable of UUIDs to a list of online Player instances.

Receiver

The collection of UUIDs.

Return

A list of Player instances corresponding to the UUIDs, excluding offline players.


fun Sequence<UUID>.toPlayers(): Sequence<@Nullable Player>

Converts a sequence of UUIDs to a sequence of online Player instances.

Receiver

The sequence of UUIDs.

Return

A list of Player instances corresponding to the UUIDs, excluding offline players.