Register plugins through an event