Пример #1
0
 public void SetupConfig()
 {
     try
     {
         if (File.Exists(ABSconfigPath))
         {
             configObj = new ABSconfig();
             configObj = ABSconfig.Read(ABSconfigPath);
             BossTimer = configObj.BossTimer;
         }
         else { configObj.Write(ABSconfigPath); }
     }
     catch (Exception ex)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("Error in config file");
         Console.ForegroundColor = ConsoleColor.Gray;
         Log.Error("Config Exception");
         Log.Error(ex.ToString());
     }
 }
Пример #2
0
 public void OnInitialize()
 {
     configObj = new ABSconfig();
     SetupConfig();
     Commands.ChatCommands.Add(new Command("autoboss", ABStoggle, "abstoggle"));
     Commands.ChatCommands.Add(new Command("autoboss", ABSreload, "absreload"));
     //Commands.ChatCommands.Add(new Command("autoboss", ABSdebug, "absdebug"));
 }