Пример #1
0
		public static void InitializeAllLists()
		{
			// don't initialize twice
			if (_initialized) return;
			try
			{
				_ops = new ServerList(ServerListType.Ops);
				_whiteList = new ServerList(ServerListType.Whitelist);
				_bannedPlayers = new ServerList(ServerListType.Banned_Players);
				_bannedIps = new ServerList(ServerListType.Banned_Ips);
				_initialized = true;
			}
			catch (Exception exception)
			{
				Logger.Log(LogLevel.Warning, "ServerList", "Couldn't initialize!", exception.Message);
			}
		}
Пример #2
0
 public static void InitializeAllLists()
 {
     // don't initialize twice
     if (_initialized)
     {
         return;
     }
     try
     {
         _ops           = new ServerList(ServerListType.Ops);
         _whiteList     = new ServerList(ServerListType.Whitelist);
         _bannedPlayers = new ServerList(ServerListType.Banned_Players);
         _bannedIps     = new ServerList(ServerListType.Banned_Ips);
         _initialized   = true;
     }
     catch (Exception exception)
     {
         Logger.Log(LogLevel.Warning, "ServerList", "Couldn't initialize!", exception.Message);
     }
 }