How to detect connection/disconnection from Plugin

Title says it all, how do I easiest detect new user connections / disconnections from the context of a plugin?

I have created a packetinterceptor where I get all packets but I want to know when new users login and disappear.

Thanks

Peter

Hi Peter,

You’'ll want to use a SessionEventListener.

Hope that helps,

Ryan