A man has learned his sentence after pleading guilty in connection with a brutal attack that left a local security guard blind.