Fixed kicked player name not printed to logs

This commit is contained in:
ricky 2011-06-06 22:53:13 +10:00
parent e30ddc0079
commit 4ac5b8c7e9

View file

@ -215,8 +215,9 @@ namespace TShockAPI
/// <param name="reason">string reason</param>
public static void Kick(int ply, string reason)
{
string playerName = FindPlayer(ply);
NetMessage.SendData(0x2, ply, -1, reason, 0x0, 0f, 0f, 0f);
Log.Info("Kicked " + FindPlayer(ply) + " for : " + reason);
Log.Info("Kicked " + playerName + " for : " + reason);
}
/// <summary>