wrapPluginConfig
fun wrapPluginConfig(dataDirectory: Path, logger: Logger = LoggerFactory.getLogger("io.github.kraftlin.config")): AbstractConfig.ConfigWrapper
Wraps the default plugin config config.yml for use in AbstractConfig. This is the recommended approach when using a single configuration file only.
Pass the @DataDirectory Path injected into your plugin constructor.
Parameters
dataDirectory
The plugin's data directory (injected via @DataDirectory).
logger
SLF4J logger used for type coercion warnings.