Subscribes to events of type.
type
a handle that removes the listener
api 1
the event class, for example IgnitionChanged.class
IgnitionChanged.class
called on the plugin's worker thread