-
Notifications
You must be signed in to change notification settings - Fork 37
Adding Configurations (P2)
Axwabo edited this page Feb 26, 2026
·
2 revisions
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.
If you only need a plugin with one configuration file and less customization, check out this tutorial.
In case you need more flexibility or customization, the configuration system has you covered!
See this page for more information.
- Making Plugins
- Features
- Guides