Creates a new instance of a global plugin, adds an entry into the plugins array and returns it.
name | type | arguments | description |
---|---|---|---|
key | string |
The key of the plugin to create an instance of. |
|
runAs | string | <optional> |
Run the plugin under a new key. This allows you to run one plugin multiple times. |
The plugin that was started, or null
if invalid key given.