public NetworkCommand(int permissionLevelRequired, NetworkCommandDelegate method, params string[] names) { this.Names = new List <string>(names); this.Names = this.Names.ConvertAll((string d) => d.ToLower()); this.CommandDelegate = method; this.permission = permissionLevelRequired; }
public static void add(NetworkCommandDelegate method, int permissionLvl, params string[] names) { commands.Add(new NetworkCommand(permissionLvl, method, names)); }