Add() public method

public Add ( string p ) : void
p string
return void
示例#1
0
 public static PlayerList Load(bool AgreeToRules)
 {
     string path = "text/agreedtorules.txt";
     if (!Directory.Exists("text")) { Directory.CreateDirectory("text"); }
     PlayerList list = new PlayerList();
     list.group = null;
     if (File.Exists(path))
     {
         foreach (string line in File.ReadAllLines(path)) { list.Add(line); }
     }
     else
     {
         File.Create(path).Close();
     } return list;
 }
示例#2
0
 public static PlayerList Load(string path, Group groupName)
 {
     if (!Directory.Exists("ranks")) { Directory.CreateDirectory("ranks"); }
     path = "ranks/" + path;
     PlayerList list = new PlayerList();
     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;
 }
示例#3
0
 public static PlayerList GCIgnoreLoad()
 {
     string path = "text/ignoreglobal.txt";
     if (!Directory.Exists("text")) { Directory.CreateDirectory("text"); }
     PlayerList list = new PlayerList();
     list.group = null;
     list.Clear();
     if (File.Exists(path))
     {
         foreach (string line in File.ReadAllLines(path)) { list.Add(line); }
     }
     else
     {
         File.Create(path).Close();
     } return list;
 }
示例#4
0
        public static PlayerList Load(bool AgreeToRules)
        {
            string path = "text/agreedtorules.txt";

            if (!Directory.Exists("text"))
            {
                Directory.CreateDirectory("text");
            }
            PlayerList list = new PlayerList();

            list.group = null;
            if (File.Exists(path))
            {
                foreach (string line in File.ReadAllLines(path))
                {
                    list.Add(line);
                }
            }
            else
            {
                File.Create(path).Close();
            } return(list);
        }
示例#5
0
        public static PlayerList Load(string path, Group groupName)
        {
            if (!Directory.Exists("ranks"))
            {
                Directory.CreateDirectory("ranks");
            }
            path = "ranks/" + path;
            PlayerList list = new PlayerList();

            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);
        }
示例#6
0
        public static PlayerList GCIgnoreLoad()
        {
            string path = "text/ignoreglobal.txt";

            if (!Directory.Exists("text"))
            {
                Directory.CreateDirectory("text");
            }
            PlayerList list = new PlayerList();

            list.group = null;
            list.Clear();
            if (File.Exists(path))
            {
                foreach (string line in File.ReadAllLines(path))
                {
                    list.Add(line);
                }
            }
            else
            {
                File.Create(path).Close();
            } return(list);
        }