RustTip

OnCarbonMutePlayer

CarbonPlayer

Called when carbon mute player occurs.

void OnCarbonMutePlayer(BasePlayer invoker, BasePlayer target, bool wants, string reason)

Parameters

invoker
BasePlayer
target
BasePlayer
wants
bool
reason
string

Return value

voidThe return value is ignored — the hook only notifies.

Example

private void OnCarbonMutePlayer(BasePlayer invoker, BasePlayer target, bool wants, string reason)
{
    Puts("OnCarbonMutePlayer");
}

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

Injection point

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