Global Plugins Api
GL.plugins
Section titled “GL.plugins”Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get list():
string[]
A list of all the plugins installed
Returns
Section titled “Returns”string[]
Methods
Section titled “Methods”get<
T>(name):Plugins[T]
Gets the exported values of a plugin, if it has been enabled
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends string | number |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | T |
Returns
Section titled “Returns”Plugins[T]
getHeaders()
Section titled “getHeaders()”getHeaders(
name):ScriptHeaders
Gets the headers of a plugin, such as version, author, and description
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | string |
Returns
Section titled “Returns”ScriptHeaders
isEnabled()
Section titled “isEnabled()”isEnabled(
name):boolean
Whether a plugin exists and is enabled
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | string |
Returns
Section titled “Returns”boolean