Esempio n. 1
0
        public static void Initialize()
        {
            if (Accounts.Count == 0 && !Environment.Service)
            {
                Console.WriteLine("Warning: This server has no accounts.");
                Console.Write("Do you want to create an owner account now? (y/n)");

                if (Console.ReadKey().Key == ConsoleKey.Y)
                {
                    Console.Write("Username: "******"Password: "******"Account created, continuing...");
                }
                else
                {
                    Console.WriteLine("Account not created, continuing...");
                }
            }
        }