Exemple #1
0
    public static void Main()
    {
        // Opens the server and sets its settings
        Console.Title = "Blackthorn Server";
        Logo();
        Console.WriteLine("[Initialize Server Startup]");

        // Checks if all directories exist, if they do not exist then create them
        Directories.Create();
        Console.WriteLine("Directories created.");

        // Clears and loads all required data
        Read.Required();
        Clean.Required();

        // Creates network devices
        Network.Start();
        Console.WriteLine("Network started.");

        // Calculates how long it took to initialize the server
        Console.WriteLine("\r\n" + "Server started. Type 'Help' to see the commands." + "\r\n");

        // Starts the ties
        Thread Comandos_Laço = new Thread(Tie.Commands);

        Comandos_Laço.Start();
        Tie.Principal();
    }