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"); } }
public override void Load(bool startup) { Command.Register(new CmdReloadEffects()); Command.Register(new CmdEffect()); Command.Register(new CmdSpawner()); rnd = new Random(); LoadEffects(); DefineEffectsAll(); playerEffects = PlayerExtList.Load("extra/playereffects.txt"); OnPlayerMoveEvent.Register(OnPlayerMove, Priority.Low); OnPlayerFinishConnectingEvent.Register(OnPlayerFinishConnecting, Priority.Low); OnLevelLoadedEvent.Register(OnLevelLoaded, Priority.Low); OnLevelUnloadEvent.Register(OnLevelUnload, Priority.Low); OnLevelDeletedEvent.Register(OnLevelDeleted, Priority.Low); OnLevelCopiedEvent.Register(OnLevelCopied, Priority.Low); OnLevelRenamedEvent.Register(OnLevelRenamed, Priority.Low); SpawnersFile.cache = new ThreadSafeCache(); if (!Directory.Exists(SpawnersFile.spawnerDirectory)) { Directory.CreateDirectory(SpawnersFile.spawnerDirectory); } Level[] levels = LevelInfo.Loaded.Items; foreach (Level level in levels) { SpawnersFile.Load(level); } spawnerAccum = 0; ActivateSpawners(); }
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"); } }
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"); } }
static void LoadAutoloadMaps(SchedulerTask task) { AutoloadMaps = PlayerExtList.Load("text/autoload.txt", '='); List <string> maps = AutoloadMaps.AllNames(); foreach (string map in maps) { if (map.CaselessEq(Server.Config.MainLevel)) { continue; } LevelActions.Load(Player.Console, map, false); } }
static void LoadAutoloadMaps(SchedulerTask task) { AutoloadMaps = PlayerExtList.Load("text/autoload.txt", '='); List <string> maps = AutoloadMaps.AllNames(); foreach (string map in maps) { if (map.CaselessEq(mainLevel.name)) { continue; } CmdLoad.LoadLevel(null, map); } }