getPluginConfig

fun getPluginConfig(pluginId: String): Optional<CommentedConfig>

Get the global plugin configuration for an plugin of the passed ID. The configuration is wrapped in an Optional, because an plugin may not provide a global configuration. If you intend on using a global configuration for your plugin, make sure to check whether it is present before trying to use it!

Return

The global plugin configuration, wrapped in an Optional.

Author

Griefed

Parameters

pluginId

The plugin ID of the...well...plugin.