Skip to content

OnUserGroupAdded

Called when a user group is added

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnUserGroupAdded( string playerId, string groupName )
{
    Puts( "OnUserGroupAdded works!" );
}

Location

  • Permission::AddUserGroup(string playerId, string groupName)
csharp
public void AddUserGroup(string playerId, string groupName)
{
	if (!this.GroupExists(groupName))
	{
		return;
	}
	if (!this.GetUserData(playerId).Groups.Add(groupName))
	{
		return;
	}
	Interface.Call("OnUserGroupAdded", new object[] { playerId, groupName });
}

Released under the MIT License.