onPacket

fun onPacket(player: Player, handler: PacketEvent.() -> Unit)

Subscribe to packet events for a player.