Beispiel #1
0
    public static void Initialize()
    {
        if (Accounts.Count == 0)
        {
            Console.WriteLine("This server has no accounts.");
            Console.Write("Do you want to create the owner account now? (y/n): ");

            var answer = Console.ReadLine();
            if (answer is "y" or "Y")
            {
                Console.WriteLine();

                Console.Write("Username: "******"Password: "******"Owner account created: {Username}", username);
                ServerAccess.AddProtectedAccount(a, true);
            }
            else
            {
                logger.Warning("No owner account created.");
            }
        }
Beispiel #2
0
        public static void Initialize()
        {
            if (Accounts.Count == 0)
            {
                Console.WriteLine("This server has no accounts.");
                Console.Write("Do you want to create the owner account now? (y/n): ");

                var answer = Console.ReadLine();
                if (answer is "y" or "Y")
                {
                    Console.WriteLine();

                    Console.Write("Username: "******"Password: "******"Account created.");

                    ServerAccess.AddProtectedAccount(a, true);
                    Console.WriteLine("Added {0} to the protected accounts list.", a.Username);
                }
                else
                {
                    Console.WriteLine();
                    Console.WriteLine("Account not created.");
                }
            }