St. Libory man takes plea deal in felony weapons case