Skip to content
Version 2.11.0
↓ Get the launcher

IPluginConfig interface

Per-plugin persistent configuration. Each plugin gets one JSON file on disk (<plugin-dir>/<pluginGuid>.config.json) organized into named sections. Plugins read settings on construct, write whenever the user changes them, and subscribe to SectionChanged to react to external edits or settings-window writes from sibling code.

public interface IPluginConfig
name description
event SectionChanged Fired when any section’s underlying file changes — either via Save from this process or an external edit detected by the file watcher. The string argument is the section name. Subscribers are called on the game thread.
GetSection(…) Returns the named section. Sections are created lazily on first access; the returned IConfigSection is stable across calls for the same name.