Connect server events

Hello
Can you do something after the client connection and before the player enters the world?
I listened to ServerConnectionFromClientEvent events when developing mod, but how do I send or retrieve data packets?
Or can this be achieved through the Sponge API?

Take a look at these sponge events ClientConnectionEvent