send

open fun send(@NotNull player: @NotNull PlatformPlayer)

Sends all collected packets to the specified player.

Since

1.15.2

Parameters

player

the target player


abstract fun send(@NotNull player: @NotNull PlatformPlayer, @NotNull onSuccess: @NotNull Runnable)

Sends all collected packets to the specified player and executes a callback on success.

Since

1.15.2

Parameters

player

the target player

onSuccess

the callback to run after sending