OnClanDisbanded
OxideCarbonClanCalled when a clan is disbanded.
void OnClanDisbanded(LocalClan local1, ulong bySteamId)Works — the game method in this build is the one the hook was written for.
Parameters
- local1
- LocalClan
- bySteamId
- ulong
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnClanDisbanded(LocalClan local1, ulong bySteamId)
{
Puts("OnClanDisbanded");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Rust.opj (Oxide)
void LocalClan.<Disband>d__72.MoveNext()
Passes: LocalClan local1, ulong bySteamId
WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (l1, this.bySteamId)Rust.Clans.Local.dll
Where it is called (this branch's game code)
// …
}
}
catch (Exception exception)
{
<>1__state = -2;
<>t__builder.SetException(exception);
return;
}
Interface.CallHook("OnClanDisbanded", localClan, this.bySteamId);
<>1__state = -2;
<>t__builder.SetResult(result);
}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.