player

@Nullable
abstract fun player(@NotNull uuid: @NotNull UUID): @Nullable PlayerChannelHandler

Retrieves the channel handler for a player by their UUID.

Return

the channel handler, or null if not found

Since

1.15.2

Parameters

uuid

the player's UUID


@NotNull
abstract fun player(@NotNull player: @NotNull PlatformPlayer): @NotNull PlayerChannelHandler

Gets or creates the channel handler for a player.

Note: This should not be used with fake players. Use player instead for those cases.

Return

the channel handler

Since

1.15.2

Parameters

player

the player