broadcast

abstract fun broadcast(@NotNull packet: @NotNull Packet<T>, @Nullable filter: Predicate<P>)

Broadcasts a packet to all players with voice chat installed.

Parameters

packet

The packet to broadcast.

filter

A predicate to filter the target players. Return true if you want to include a player.


open fun broadcast(@NotNull packet: @NotNull Packet<T>)

Broadcasts a packet to all players with voice chat installed.

Parameters

packet

The packet to broadcast.