channel

@Nullable
open fun channel(@NotNull uuid: @NotNull UUID): @Nullable PlayerChannelHandler

Retrieves the network channel handler for a specific player.


PlayerChannelHandler handler = pipeline.channel(player.uuid());
if (handler != null) {
    bundler.send(handler);
}

Return

the channel handler, or null if the player is not spawned

Since

1.15.2

Parameters

uuid

the UUID of the player

Throws