Beispiel #1
0
        internal static void LoadPlayerLists()
        {
            agreed     = PlayerList.Load("ranks/agreed.txt");
            invalidIds = PlayerList.Load("extra/invalidids.txt");
            Player.Console.DatabaseID = NameConverter.InvalidNameID("(console)");

            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");

            models      = PlayerExtList.Load("extra/models.txt");
            skins       = PlayerExtList.Load("extra/skins.txt");
            reach       = PlayerExtList.Load("extra/reach.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);

            if (Server.Config.WhitelistedOnly)
            {
                whiteList = PlayerList.Load("ranks/whitelist.txt");
            }
        }
Beispiel #2
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");
            }
        }
Beispiel #3
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");
            }
        }
Beispiel #4
0
        void LoadPlayers()
        {
            string desired = (int)Permission + "_rank";

            // Try to use the auto filename format
            if (filename == null || !filename.StartsWith(desired))
            {
                MoveToDesired(desired);
            }

            Players = PlayerList.Load("ranks/" + filename);
        }
Beispiel #5
0
 /// <summary>
 /// Create a new group object
 /// </summary>
 /// <param name="Perm">The permission of the group</param>
 /// <param name="maxB">The maxblocks this group can cuboid</param>
 /// <param name="maxUn">The max undo this group can do</param>
 /// <param name="fullName">The group full name</param>
 /// <param name="newColor">The color of the group (Not including the &)</param>
 /// <param name="motd">the custom MOTD for the group</param>
 /// <param name="file">The file path where the current players of this group are stored</param>
 public Group(LevelPermission Perm, int maxB, long maxUn, string fullName, char newColor, string motd, string file, byte maps = 3, string prefix = "")
 {
     Permission   = Perm;
     maxBlocks    = maxB;
     maxUndo      = maxUn;
     trueName     = fullName;
     name         = trueName.ToLower();
     color        = "&" + newColor;
     MOTD         = motd;
     fileName     = file;
     OverseerMaps = maps;
     this.prefix  = prefix;
     playerList   = name != "nobody" ? PlayerList.Load(fileName, this) : new PlayerList();
     if (OnGroupLoaded != null)
     {
         OnGroupLoaded(this);
     }
     OnGroupLoadedEvent.Call(this);
 }
Beispiel #6
0
        void LoadPlayerLists()
        {
            bannedIP       = PlayerList.Load("banned-ip.txt", null);
            ircControllers = PlayerList.Load("IRC_Controllers.txt", null);
            muted          = PlayerList.Load("muted.txt", null);

            foreach (Group grp in Group.GroupList)
            {
                grp.playerList = PlayerList.Load(grp.fileName, grp);
            }
            if (useWhitelist)
            {
                whiteList = PlayerList.Load("whitelist.txt", null);
            }
            if (!File.Exists("ranks/jailed.txt"))
            {
                File.Create("ranks/jailed.txt").Close(); Server.s.Log("CREATED NEW: ranks/jailed.txt");
            }
            Extensions.UncapitalizeAll("ranks/banned.txt");
            Extensions.UncapitalizeAll("ranks/muted.txt");
        }
Beispiel #7
0
 public override void LoadControllers()
 {
     Controllers = PlayerList.Load("ranks/IRC_Controllers.txt");
 }
 public override void Load(bool startup)
 {
     whitelist = PlayerList.Load("extra/vpnwhitelist.txt");
     OnPlayerConnectEvent.Register(HandlePlayerConnect, Priority.Low);
 }