예제 #1
0
 public void OnInitialize(EventArgs args)
 {
     Commands.ChatCommands.Add(new Command("prizepool.default", award, "award"));
     configObj = new PrizePoolConfig();
     loadConfig();
 }
예제 #2
0
 private void loadConfig()
 {
     try
     {
         if (File.Exists(filepath))
         {
             configObj = new PrizePoolConfig();
             configObj = PrizePoolConfig.Read(filepath);
             return;
         }
         else
         {
             configObj.Write(filepath);
             return;
         }
     }
     catch (Exception ex)
     {
         Log.ConsoleError(ex.Message);
         return;
     }
 }