TShockAPI.DB.UserManager.UpdateLogin C# (CSharp) Метод

UpdateLogin() публичный Метод

Updates the last accessed time for a database user to the current time.
public UpdateLogin ( User user ) : void
user User The user object to modify.
Результат void
        public void UpdateLogin(User user)
        {
            try
            {
                if (_database.Query("UPDATE Users SET LastAccessed = @0, KnownIps = @1 WHERE Username = @2;", DateTime.UtcNow.ToString("s"), user.KnownIps, user.Name) == 0)
                    throw new UserNotExistException(user.Name);
            }
            catch (Exception ex)
            {
                throw new UserManagerException("UpdateLogin SQL returned an error", ex);
            }
        }