Launch function: checks under what conditions the plugin will start
Defining plugin initialization