Copy paste fail
This commit is contained in:
parent
edffd29a69
commit
0a3120b8c6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue