Returns a live, read-only proxy to another plugin's exports table.
| Name | Type | Description |
|---|---|---|
name | string | The name of the plugin to access. |
A read-only proxy table. Looking up fields returns values from the named plugin's exports, or nil if the plugin is not enabled or that export is absent.
if hasPlugin("Clock") then
local clock = getPlugin("Clock")
if clock.setDay then clock.setDay() end
end