internal override void Handle() { // if (this.Trusted) { if (this.AvatarID.Low == 0) { this.Connection.Avatar = Avatars.Create(this.Connection); Debugger.Warning($"Player not found! Creating {this.Connection.Avatar.Identifier}..."); if (this.Connection.Avatar != null) { this.Login(); } else { new LoginFailedMessage(this.Connection, Reason.Pause).Send(); } } else if (this.AvatarID.Low > 0) { Debugger.Info($"{this.AvatarID} found! Logging in..."); this.Connection.Avatar = Avatars.Get(this.Connection, this.AvatarID); if (this.Connection.Avatar == null) { Debugger.Warning("Account missing! Recreating..."); this.Connection.Avatar = Avatars.Create(this.Connection, this.AvatarID); } this.Login(); } else { Debugger.Error("Player tried to login with a player id inferior to 0."); } } }