RustTip

OnGroupParentSet

OxideCarbonPermissions

Called when a group's parent is set or changed.

void OnGroupParentSet(string group, string parentGroup)

Parameters

group
string
parentGroup
string

Return value

voidThe return value is ignored — the hook only notifies.

Example

private void OnGroupParentSet(string group, string parentGroup)
{
    Puts("OnGroupParentSet");
}

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

Injection point

Carbon
Oxide.Core.Libraries.Permission.SetGroupParent
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.