Ejemplo n.º 1
0
        static void LoadPlayerLists(SchedulerTask task)
        {
            agreed = new PlayerList("ranks/agreed.txt");
            try {
                UpgradeTasks.UpgradeOldAgreed();
                agreed = PlayerList.Load("ranks/agreed.txt");
            } catch (Exception ex) {
                Logger.LogError(ex);
            }

            bannedIP       = PlayerList.Load("ranks/banned-ip.txt");
            ircControllers = PlayerList.Load("ranks/IRC_Controllers.txt");
            hidden         = PlayerList.Load("ranks/hidden.txt");
            vip            = PlayerList.Load("text/vip.txt");
            noEmotes       = PlayerList.Load("text/emotelist.txt");
            lockdown       = PlayerList.Load("text/lockdown.txt");
            jailed         = PlayerExtList.Load("ranks/jailed.txt");
            models         = PlayerExtList.Load("extra/models.txt");
            skins          = PlayerExtList.Load("extra/skins.txt");
            reach          = PlayerExtList.Load("extra/reach.txt");
            invalidIds     = PlayerList.Load("extra/invalidids.txt");
            rotations      = PlayerExtList.Load("extra/rotations.txt");
            modelScales    = PlayerExtList.Load("extra/modelscales.txt");

            muted     = PlayerExtList.Load("ranks/muted.txt");
            frozen    = PlayerExtList.Load("ranks/frozen.txt");
            tempRanks = PlayerExtList.Load(Paths.TempRanksFile);
            tempBans  = PlayerExtList.Load(Paths.TempBansFile);
            ModerationTasks.QueueTasks();

            if (ServerConfig.WhitelistedOnly)
            {
                whiteList = PlayerList.Load("ranks/whitelist.txt");
            }
        }
Ejemplo n.º 2
0
        void LoadPlayerLists()
        {
            agreed = new PlayerList("ranks/agreed.txt");
            try {
                UpgradeTasks.UpgradeOldAgreed();
                agreed = PlayerList.Load("agreed.txt");
            } catch (Exception ex) {
                Server.ErrorLog(ex);
            }

            bannedIP       = PlayerList.Load("banned-ip.txt");
            ircControllers = PlayerList.Load("IRC_Controllers.txt");
            muted          = PlayerList.Load("muted.txt");
            frozen         = PlayerList.Load("frozen.txt");
            hidden         = PlayerList.Load("hidden.txt");
            vip            = PlayerList.Load("text/vip.txt");
            noEmotes       = PlayerList.Load("text/emotelist.txt");
            lockdown       = PlayerList.Load("text/lockdown.txt");

            jailed     = PlayerExtList.Load("ranks/jailed.txt");
            models     = PlayerExtList.Load("extra/models.txt");
            skins      = PlayerExtList.Load("extra/skins.txt");
            reach      = PlayerExtList.Load("extra/reach.txt");
            invalidIds = PlayerList.Load("extra/invalidids.txt");

            foreach (Group grp in Group.GroupList)
            {
                grp.playerList = PlayerList.Load(grp.fileName);
            }
            if (useWhitelist)
            {
                whiteList = PlayerList.Load("whitelist.txt");
            }
        }
Ejemplo n.º 3
0
        static void InitPlayerLists(SchedulerTask task)
        {
            try {
                UpgradeTasks.UpgradeOldAgreed();
            } catch (Exception ex) {
                Logger.LogError("Error upgrading agreed list", ex);
            }

            LoadPlayerLists();
            ModerationTasks.QueueTasks();
        }