RustTip

OnCarbonPrivateMessage

CarbonPlayer

Called when a carbon private is received.

void OnCarbonPrivateMessage(BasePlayer player, BasePlayer target, string message)

Parameters

player
BasePlayer
target
BasePlayer
message
string

Return value

voidThe return value is ignored — the hook only notifies.

Example

private void OnCarbonPrivateMessage(BasePlayer player, BasePlayer target, string message)
{
    Puts("OnCarbonPrivateMessage");
}

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

Injection point

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