Update ConsoleFunctions.cs

This commit is contained in:
sonic 2024-08-18 19:55:06 +02:00 committed by GitHub
parent ce8e8b29ac
commit 77871fd514
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,15 +8,11 @@ namespace sodoff.Utils;
public class ConsoleFunctions {
//function to log when the server start and when the server is ready
public static void log(string Option) {
if (Option == "Server Start")
{
Console.WriteLine("Server is starting");
}
else if (Option == "Server Running")
public static void log(string Option, int AssetPort) {
if (Option == "Server Running")
{
Console.WriteLine("Server is running");
Console.WriteLine("Server is running at Asset Server: http://localhost:5001 and Api Server: http://localhost:5000");
Console.WriteLine("Server is running at Asset Server: http://localhost:" + AssetPort + "and Api Server: http://localhost:5000");
Console.WriteLine("You can start the game now");
Console.WriteLine("Press Ctrl + C to close the server");
}