From 8a87cb977ff63f620311cd268b2ee42e0560cfa5 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 22 Feb 2017 16:59:28 +1100 Subject: [PATCH] Show client's app name in server logs when connecting --- MCGalaxy/Player/Player.Login.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MCGalaxy/Player/Player.Login.cs b/MCGalaxy/Player/Player.Login.cs index 9e897c150..2457931e1 100644 --- a/MCGalaxy/Player/Player.Login.cs +++ b/MCGalaxy/Player/Player.Login.cs @@ -161,7 +161,11 @@ namespace MCGalaxy { SendMessage("&cPlease complete admin verification with &a/pass [Password]!"); } - Server.s.Log(name + " [" + ip + "] has joined the server."); + if (String.IsNullOrEmpty(appName)) { + Server.s.Log(name + " [" + ip + "] connected."); + } else { + Server.s.Log(name + " [" + ip + "] connected using " + appName + "."); + } Game.InfectMessages = PlayerDB.GetInfectMessages(this); Server.zombie.PlayerJoinedServer(this);