/// <summary> /// Removes a group from the server /// </summary> /// <param name="group">The group to remove</param> public static void RemoveGroup(PointBlankGroup group) { if (!_Groups.ContainsValue(group)) { return; } _Groups.Remove(group.ID); if (Loaded) { PointBlankGroupEvents.RunGroupRemoved(group); } }
/// <summary> /// Removes a group from the server /// </summary> /// <param name="ID">The ID of the group</param> public static void RemoveGroup(string ID) { if (!_Groups.ContainsKey(ID)) { return; } PointBlankGroup group = _Groups[ID]; _Groups.Remove(ID); if (Loaded) { PointBlankGroupEvents.RunGroupRemoved(group); } }