Exemplo n.º 1
0
        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());
            }
        }
Exemplo n.º 2
0
 public ServerLogo(Main Game) : base(Game)
 {
     Order            = -50;
     ServerLogoConfig = new ServerLogoConfigFile();
 }