plugin will be null here, the plugin object does not exist at this point yet. You must create it, like how plugins are loaded at start.