MCDawn.PlayerGroupList.Add C# (CSharp) Method

Add() public method

public Add ( string p ) : void
p string
return void
        public void Add(string p)
        {
            players.Add(p.ToLower());
        }

Usage Example

Example #1
0
        public static PlayerGroupList Load(string path, PlayerGroup groupName)
        {
            if (!Directory.Exists("groups"))
            {
                Directory.CreateDirectory("groups");
            }
            path = "groups/" + path;
            PlayerGroupList list = new PlayerGroupList();

            list.group = groupName;
            if (File.Exists(path))
            {
                foreach (string line in File.ReadAllLines(path))
                {
                    list.Add(line);
                }
            }
            else
            {
                File.Create(path).Close();
                Server.s.Log("CREATED NEW: " + path);
            } return(list);
        }
All Usage Examples Of MCDawn.PlayerGroupList::Add