void Listener_OnGroupMemberAdded(FizzGroupMemberEventData eventData) { if (UserId.Equals(eventData.MemberId)) { Client.Chat.Groups.FetchGroup(eventData.GroupId, (groupMeta, ex) => { if (ex == null) { AddGroup(new FizzGroupModel(groupMeta, GroupTag)); FizzGroupModel group = GetGroup(groupMeta.Id); if (eventData.State == FizzGroupMemberState.Pending) { GroupInvites.Add(group.Id, CreateUserGroup(eventData)); } if (OnGroupAdded != null) { OnGroupAdded.Invoke(GetGroup(eventData.GroupId)); } } }); } else { FizzGroupModel group = GetGroup(eventData.GroupId); if (group != null && OnGroupMembersUpdated != null) { OnGroupMembersUpdated.Invoke(group); } } }
internal static void RunGroupAdded(PointBlankGroup g) => OnGroupAdded?.Invoke(g);
internal static void RunGroupAdd(UnturnedPlayer player, Group group) => OnGroupAdded?.Invoke(player, @group);
internal static void RunGroupAdd(PointBlankPlayer player, PointBlankGroup group) => OnGroupAdded?.Invoke(player, group);