TShockAPI.DB.UserManager.SetUserUUID C# (CSharp) Method

SetUserUUID() public method

Sets the UUID for a given username
public SetUserUUID ( User user, string uuid ) : void
user User User user
uuid string string uuid
return void
        public void SetUserUUID(User user, string uuid)
        {
            try
            {
                if (
                    _database.Query("UPDATE Users SET UUID = @0 WHERE Username = @1;", uuid,
                                   user.Name) == 0)
                    throw new UserNotExistException(user.Name);
            }
            catch (Exception ex)
            {
                throw new UserManagerException("SetUserUUID SQL returned an error", ex);
            }
        }