nord vpnnord vpn
Ad

Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
772 B
4
Indexable
Never
 public void ClearData()
        {
            lock (lockObject)
            {
                Console.WriteLine("Are you sure you want to clear all player data? (y/n)");
                string input = Console.ReadLine();

                if (input?.ToLower() == "y")
                {
                    // Clear the player data
                    using (StreamWriter writer = new StreamWriter(filePath))
                    {
                        writer.Write(string.Empty);
                    }

                    Console.WriteLine("Player data cleared successfully.");
                }
                else
                {
                    Console.WriteLine("Player data was not cleared.");
                }
            }
        }

nord vpnnord vpn
Ad