Show client's app name in server logs when connecting

This commit is contained in:
UnknownShadow200 2017-02-22 16:59:28 +11:00
parent 64b5cc833c
commit 8a87cb977f

View File

@ -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);