Reverted all player login changes and added a new allowLoginEvent flag.

Hopefully this finally solves all the issues in previous builds =).