OnPluginUnloaded
OxideCarbonEngineCalled after a plugin has been unloaded and disposed.
void OnPluginUnloaded(Oxide.Plugins.RustPlugin plugin)Parameters
- plugin
- Oxide.Plugins.RustPlugin
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnPluginUnloaded(Oxide.Plugins.RustPlugin plugin)
{
Puts("OnPluginUnloaded");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Carbon
Carbon.Core.ModLoader.UninitializePlugin
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.