From 615c49e395a602563c98abe92a2192a4c7fbf7b6 Mon Sep 17 00:00:00 2001 From: Sardelka Date: Sat, 9 Jul 2022 11:39:37 +0800 Subject: [PATCH] Add country --- RageCoop.Server/Server.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RageCoop.Server/Server.cs b/RageCoop.Server/Server.cs index c87961a..b4b3452 100644 --- a/RageCoop.Server/Server.cs +++ b/RageCoop.Server/Server.cs @@ -22,6 +22,9 @@ namespace RageCoop.Server { [JsonProperty("ip")] public string Address { get; set; } + + [JsonProperty("country")] + public string Country { get; set; } } /// @@ -142,6 +145,7 @@ namespace RageCoop.Server "{ " + "\"address\": \"" + info.Address + "\", " + "\"port\": \"" + Settings.Port + "\", " + + "\"country\": \"" + info.Country + "\", " + "\"name\": \"" + Settings.Name + "\", " + "\"version\": \"" + _compatibleVersion.Replace("_", ".") + "\", " + "\"players\": \"" + MainNetServer.ConnectionsCount + "\", " +