Copy paste fail

This commit is contained in:
ricky 2011-06-07 23:09:37 +10:00
parent edffd29a69
commit 0a3120b8c6

View file

@ -254,7 +254,7 @@ namespace TShockAPI
string ip = GetPlayerIP(plr); string ip = GetPlayerIP(plr);
string playerName = Main.player[plr].name; string playerName = Main.player[plr].name;
TShock.Bans.AddBan(ip, playerName, reason); TShock.Bans.AddBan(ip, playerName, reason);
if (!Main.player[plr].active || Netplay.serverSock[ply].kill) if (!Main.player[plr].active || Netplay.serverSock[plr].kill)
NetMessage.SendData(0x2, plr, -1, "Banned: " + reason, 0x0, 0f, 0f, 0f); NetMessage.SendData(0x2, plr, -1, "Banned: " + reason, 0x0, 0f, 0f, 0f);
Log.Info("Banned " + playerName + " for : " + reason); Log.Info("Banned " + playerName + " for : " + reason);
if (adminUserName.Length == 0) if (adminUserName.Length == 0)