RustTip

OnClanMemberLeft

OxideCarbonClan

Called when clan member left occurs.

void OnClanMemberLeft(LocalClan local1, ulong steamId)
Works — the game method in this build is the one the hook was written for.

Parameters

local1
LocalClan
steamId
ulong

Return value

voidThe return value is ignored — the hook only notifies.

Example

private void OnClanMemberLeft(LocalClan local1, ulong steamId)
{
    Puts("OnClanMemberLeft");
}

Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.

Injection point

Rust.opj (Oxide)
void LocalClan.<Kick>d__65.MoveNext()

Passes: LocalClan local1, ulong steamId

WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (l1, this.steamId)Rust.Clans.Local.dll

Where it is called (this branch's game code)

// …
	}
}
goto end_IL_000e;
IL_0137:
if (localClan._backend.Database.DeleteMember(localClan.ClanId, steamId))
{
	if (flag)
	{
		Interface.CallHook("OnClanMemberLeft", localClan, this.steamId);
		localClan._backend.Database.AppendLog(localClan.ClanId, "leave", steamId);
	}
	else
	{
		localClan._backend.Database.AppendLog(localClan.ClanId, "kick", bySteamId, steamId);
	}
	localClan.Changed(ClanDataSource.Members);
	localClan._backend.MembershipChanged(steamId, null);
// …

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.