Update Program.cs

This commit is contained in:
Sardelka9515 2022-08-01 23:20:22 +08:00 committed by GitHub
parent 0de040548d
commit cb1b4f4970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,14 +50,17 @@ namespace RageCoop.Server
};
server.Start();
mainLogger?.Info("Please use CTRL + C if you want to stop the server!");
mainLogger?.Info("Type here to send chat messages or execute commands");
mainLogger?.Flush();
while (true)
{
mainLogger?.Info("Type here to send chat message: ");
var s=Console.ReadLine();
if (!Stopping && s!=null)
{
server.ChatMessageReceived("Server", s, null);
}
Thread.Sleep(20);
}
}
catch (Exception e)