use plugin_loaded()-event fo plugin initialization

plugin API and settings are not available before