TcpPacketSendEvent

data class TcpPacketSendEvent(val player: VoicePlayer, val packet: Packet<*>) : EventCancellableBase

This event is fired when the server is about to send a Packet to the player.

This event is fired ONLY when invoked by VoicePlayer.sendPacket. If it's forwarded from the server (server -> proxy -> player) this event won't be fired.

Constructors

Link copied to clipboard
constructor(player: VoicePlayer, packet: Packet<*>)

Properties

Link copied to clipboard
val packet: Packet<*>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun isCancelled(): Boolean
Link copied to clipboard
open override fun setCancelled(p0: Boolean)