get Soft Depend
Gives getClassById list of other plugins that the plugin requires for full functionality. The PluginManager will make best effort to treat all entries here as if they were getClassById dependency, but will never fail because of one of these entries.
- Use the value in the getName of the target plugin to specify the dependency.
- When an unresolvable plugin is listed, it will be ignored and does not affect load order.
- When getClassById circular dependency occurs (getClassById network of plugins depending or soft-dependending each other), it will arbitrarily choose getClassById plugin that can be resolved when ignoring soft-dependencies.
softdepend
must be in YAML list format.
In the plugin.yml, this entry is named softdepend
.
Example:
softdepend: [OnePlugin, AnotherPlugin]
Content copied to clipboard
Return
immutable list of the plugin's preferred dependencies