public void OnInitialize(EventArgs args) { Commands.ChatCommands.Add(new Command("prizepool.default", award, "award")); configObj = new PrizePoolConfig(); loadConfig(); }
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; } }