SMETHPORT, Pa. — An Olean, N.Y., man pleaded guilty to and was sentenced for a firearms violation in McKean County Court.