void Listener_OnGroupMemberRemoved(FizzGroupMemberEventData eventData)
        {
            if (UserId.Equals(eventData.MemberId))
            {
                FizzGroupModel group = GetGroup(eventData.GroupId);
                GroupInvites.Remove(eventData.GroupId);
                Groups.Remove(groupLookup[eventData.GroupId]);
                groupLookup.Remove(eventData.GroupId);

                if (group != null && OnGroupRemoved != null)
                {
                    OnGroupRemoved.Invoke(group);
                }
            }
            else
            {
                FizzGroupModel group = GetGroup(eventData.GroupId);
                if (group != null && OnGroupMembersUpdated != null)
                {
                    OnGroupMembersUpdated.Invoke(group);
                }
            }
        }
 internal static void RunGroupRemoved(PointBlankGroup g) => OnGroupRemoved?.Invoke(g);
Example #3
0
 internal static void RunGroupRemove(UnturnedPlayer player, Group group) => OnGroupRemoved?.Invoke(player, @group);
Example #4
0
    public static void RemoveGroup(int index)
    {
        _groups[index] = null;

        OnGroupRemoved?.Invoke(index);
    }
 internal static void RunGroupRemove(PointBlankPlayer player, PointBlankGroup group) => OnGroupRemoved?.Invoke(player, group);