Replace onEnable in plugin template with simpler implementation