Ejemplo n.º 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());
     }
 }
Ejemplo n.º 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"));
 }