⚙️Adding Configurations
Adding your own configurations to a plugin is pretty straightforward!
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 the following tutorial.
⚙️Simple Plugin ConfigurationAdvanced Configurations
In case you need more flexibility or customization, the configuration system has you covered!
⚙️Advanced ConfigurationsLast updated
Was this helpful?