Skip to content

Adding Configurations (P2)

Axwabo edited this page Feb 26, 2026 · 2 revisions

Configuration Class

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

For example:

public class MyPluginConfigurationClass
{
    public int MyConfigurableInt { get; set; } = 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 this tutorial.

Advanced Configurations

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

See this page for more information.

Clone this wiki locally