TcpPacketReceivedEvent

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

This event is fired once the server has received a packet from the player but has not yet handled it.

If event is cancelled, packet won't be forwarded to the backend server.

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)