public static void SetupConfig() { try { if (File.Exists(ServerLogoConfigPath)) { ServerLogoConfig = ServerLogoConfigFile.Read(ServerLogoConfigPath); } ServerLogoConfig.Write(ServerLogoConfigPath); } catch (Exception ex) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Error in ServerLogo config file"); Console.ForegroundColor = ConsoleColor.Gray; TShock.Log.ConsoleError("ServerLogo Config Exception"); TShock.Log.ConsoleError(ex.ToString()); } }
public ServerLogo(Main Game) : base(Game) { Order = -50; ServerLogoConfig = new ServerLogoConfigFile(); }