Make plugin.events to selectable. Closes #1673