public bool Add(CustomCvar newCvar) { newCvar.Command = newCvar.Command.ToLower().Trim(); foreach (var cvar in Cvars) { if (cvar.Command == newCvar.Command) { return(false); } } Cvars.Add(newCvar); return(true); }
public CustomCvar(CustomCvar cvarToCopy) { this.RequiredRole = cvarToCopy.RequiredRole; this.Command = cvarToCopy.Command; this.CvarResponse = cvarToCopy.CvarResponse; }