In a plugin I’m developing I need to intercept login event for user.
For some reasons I don’t want to use packet interceptor for presence packet, what I need is a server event called when a user login.
I’m using SessionEventListener making something like (in plugin contstructor):
MySessionInterceptor implements SessionEventListener and the problem I’m writing for is about method
void sessionCreated(Session session)
which is called many times (about 5/6) for every user log in. Is this a bug? There are better solution to intercept user login?