Skip to content

Adding Configurations (P2)

ced777ric edited this page Feb 10, 2025 · 1 revision

Configuration Class

Any class that can be serialized is a class that can be used for configurations.

For example:

{
    public int MyConfigurableInt <a data-footnote-ref href="#user-content-fn-2">{ get; set; }</a> = 10; // 10 will be the default value
}

Fields won't be serialized. Always use properties for the settings you want to be serialized.

Simple Plugin Configuration

If you only need a plugin with one configuration file and less customization, check out the following tutorial.

adding-configurations.md

Advanced Configurations

In case you need more flexibility or customization, the configuration system has you covered!

adding-configurations-1.md

[^1]: It can have any name you want it to have

[^2]: Don't miss this part, it is important!

Clone this wiki locally