Prison time for weapons offences