I have a custom plugin that I have written to manage a lot of stuff. I want to use this for the main website.com. I don't want any of the subdomain sites e.g. website.com/site1 to have access to this plugin. I was thinking of implementing something in the plugin itself so it would check the URL and wouldn't do anything if it was not the main website, but this isn't what I really want. I want to completely hide this plugin from all sub websites. I plan on having multiple plugins in the future so I would like to have some control over what sub sites get access to particular plugins.
To further clarify. I'm not looking to give people options I want to decide what options the sub sites have. I have a dirty solution that I do not like.
if(get_site_url() != "http://website.com") exit;
This will cause a fatal exception when the plugin is installed on anything other than the main site, but its really ugly. I want a cleaner way to hide this plugin from the plugin menu for sub sites.