Fixeds kick not working

This commit is contained in:
high 2011-06-07 08:46:33 -04:00
parent 693e279a78
commit d7987ac633
2 changed files with 11 additions and 6 deletions

View file

@ -214,7 +214,7 @@ namespace TShockAPI
/// <param name="reason">string reason</param>
public static void Kick(int ply, string reason)
{
if (!Main.player[ply].active)
if (!Netplay.serverSock[ply].active || Netplay.serverSock[ply].kill)
return;
if (!TShock.players[ply].group.HasPermission("immunetokick") || reason.Contains("Banned: "))
{