Limit a Plugin Functionality to only Logged In Users?

Hi,

Is there a method to write a function to limit a particular plugin to only be in effect for logged-in users?

Thanks for any help or insight.

James