Implemented custom player connection handling and packet interception event.