/// <summary> /// Adds a group to the server groups /// </summary> /// <param name="group">The group instance to add</param> public static void AddGroup(PointBlankGroup group) { if (_Groups.ContainsKey(group.ID)) { return; } _Groups.Add(group.ID, group); if (Loaded) { PointBlankGroupEvents.RunGroupAdded(group); } }
/// <summary> /// Creates and adds a group to the server group /// </summary> /// <param name="ID">The group ID</param> /// <param name="Name">The group name</param> /// <param name="Cooldown">The command cooldown for the group</param> public static void AddGroup(string ID, string Name, bool isDefault, int Cooldown, Color color) { if (_Groups.ContainsKey(ID)) { return; } PointBlankGroup group = new PointBlankGroup(ID, Name, isDefault, Cooldown, color); _Groups.Add(ID, group); if (Loaded) { PointBlankGroupEvents.RunGroupAdded(group); } }