/// <summary> /// /// </summary> /// <param name="character"></param> public void CharacterDisconnected(CharacterEntity character) { if (character.PartyId != -1) { PartyManager.Instance.PartyLeave(character); } if (character.PartyInvitedPlayerId != -1 || character.PartyInviterPlayerId != -1) { BasicFrame.Instance.PartyRefuse(character, ""); } if (character.GuildInvitedPlayerId != -1 || character.GuildInviterPlayerId != -1) { BasicFrame.Instance.GuildJoinRefuse(character, ""); } character.AddMessage(() => { if (character.Disconnected()) { RemoveCharacter(character); } }); }