RustTip

OnCarbonSpectateEnd

CarbonPlayer

Called when a server console command is executed.

Useful for auditing or overriding server-side console commands.

void OnCarbonSpectateEnd(BasePlayer player, BasePlayer target)

Parameters

player
BasePlayer
target
BasePlayer

Return value

voidBehaviour is not described.

Example

private void OnCarbonSpectateEnd(BasePlayer player, BasePlayer target)
{
    Puts("OnCarbonSpectateEnd");
}

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

Injection point

Carbon
Carbon.Modules.AdminModule.StopSpectating
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.