public Server(World World, int PlayerCap, String myWhiteList, String myBanList, String myOpList)
 {
     Main.maxNetplayers = PlayerCap;
     world = World;
     world.Server = this;
     pluginManager = new PluginManager(Statics.PluginPath, this);
     WhiteList = new DataRegister(myWhiteList);
     WhiteList.Load();
     BanList = new DataRegister(myBanList);
     BanList.Load();
     OpList = new DataRegister(myOpList);
     OpList.Load();
 }
 public Server(World World, int PlayerCap, string WhiteList, string BanList, string OpList)
 {
     Main.maxNetplayers = PlayerCap;
     world = World;
     world.setServer(this);
     pluginManager = new PluginManager(Statics.getPluginPath, this);
     whiteList = new DataRegister(WhiteList);
     whiteList.Load();
     banList = new DataRegister(BanList);
     banList.Load();
     opList = new DataRegister(OpList);
     opList.Load();
 }
        public Server(World World, int PlayerCap, String myWhiteList, String myBanList, String myOpList)
        {
            Main.maxNetplayers = PlayerCap;
            world = World;
            world.Server = this;
            pluginManager = new PluginManager(Statics.PluginPath, this);
            WhiteList = new DataRegister(myWhiteList);
            WhiteList.Load();
            BanList = new DataRegister(myBanList);
            BanList.Load();
            OpList = new DataRegister(myOpList);
            OpList.Load();

            RejectedItems = new List<String>();
            String[] rejItem = Program.properties.RejectedItems.Split(',');
            for (int i = 0; i < rejItem.Length; i++)
            {
                if (rejItem[i].Trim().Length > 0)
                {
                    RejectedItems.Add(rejItem[i].Trim());
                }
            }
        }