Fix LoginEvent not being called.

If the server is in offline mode, the LoginEvent should be called.