Skip to content

Config

Access your mod’s settings. You can check out how to use this module in the creating mod settings tutorial.

Whether your mod is enabled.

A Dictionary<string, object> containing your mod’s settings, it’s recommended to use the below methods to access the settings instead of interfacing with this dictionary directly.

Gets the setting’s value from the mod’s config with the given key. Deserialized into type T.

  • string key: The key to get.

Sets the setting’s value in the mod’s config with the given key to the given value.

  • string key: The key to set.
  • object value: The value to set the key to, auto-serialized to a JSON string.

Copies the config of the mod.