Man sent to prison for unlawful use of weapons