Home / Misc

hasPlugin()

hasPlugin(name)

Reports whether a plugin is currently enabled.

Parameters

NameTypeDescription
namestringThe name of the plugin to check.

Returns

true if a plugin with that name is enabled, otherwise false. Name comparison is case-insensitive.

Example

if not hasPlugin("Core") then
  log("Warning: Core plugin is missing!")
end