LoadDefaultConfig
OxideCarbonEngineCalled to create a default config when none exists.
Populate default config keys/values when no file exists.
void LoadDefaultConfig()Parameters
No parameters.
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void LoadDefaultConfig()
{
Puts("LoadDefaultConfig");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Carbon
Oxide.Core.Plugins.Plugin.LoadConfig
Inside CarbonCarbon.Common
Sources: Rust.opj from OxideMod/Oxide.Rust (MIT) and hook metadata of the Carbon documentation (MIT). Method code is decompiled from this branch's server.