Add event system for sub-plugins