RustTip

OnPlayerLootEnd

OxideCarbonPlayer

Called when a remote RCON command is received.

Provides access to the raw RCON message so you can log or modify behavior.

void OnPlayerLootEnd(PlayerLoot playerLoot)
Works — the game method in this build is the one the hook was written for.

Parameters

playerLoot
PlayerLoot

Return value

voidThe return value is ignored — the hook only notifies.

Example

private void OnPlayerLootEnd(PlayerLoot playerLoot)
{
    Puts("OnPlayerLootEnd");
}

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

Injection point

Rust.opj (Oxide)
void PlayerLoot.Clear()

Passes: PlayerLoot playerLoot

WorksReturnBehavior: ContinueArgumentBehavior: JustThisAssembly-CSharp.dll

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

public void Clear()
{
	if (!IsLooting())
	{
		return;
	}
	Interface.CallHook("OnPlayerLootEnd", this);
	baseEntity.HasClosedLoot();
	MarkDirty();
	if ((bool)entitySource)
	{
		entitySource.SendMessage("PlayerStoppedLooting", baseEntity, SendMessageOptions.DontRequireReceiver);
	}
	foreach (ItemContainer container in containers)
	{
// …

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.