From ebfe78d12a7be04f13b1fd91140609cab24f96d8 Mon Sep 17 00:00:00 2001 From: Shank Date: Fri, 3 Jun 2011 04:18:36 -0600 Subject: [PATCH] The server now informs you of what list you were on when you are booted. --- TShockAPI/TShock.cs | 9 ++++++++- TShockAPI/TShockAPI.csproj | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 62248162..97e00f00 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -282,9 +282,16 @@ namespace TShockAPI { if (Main.netMode != 2) { return; } string ip = Tools.GetRealIP((Convert.ToString(Netplay.serverSock[ply].tcpClient.Client.RemoteEndPoint))); - if (FileTools.CheckBanned(ip) || FileTools.CheckCheat(ip) || FileTools.CheckGreif(ip)) + if (FileTools.CheckBanned(ip)) { Tools.Kick(ply, "You are banned."); + } else if (FileTools.CheckCheat(ip)) + { + Tools.Kick(ply, "You were flagged for cheating."); + } + else if (FileTools.CheckGreif(ip)) + { + Tools.Kick(ply, "You were flagged for kill tile abuse."); } if (!FileTools.OnWhitelist(ip)) { diff --git a/TShockAPI/TShockAPI.csproj b/TShockAPI/TShockAPI.csproj index d9987db5..11aebcc5 100644 --- a/TShockAPI/TShockAPI.csproj +++ b/TShockAPI/TShockAPI.csproj @@ -69,7 +69,8 @@ - $(SolutionDir)\myass.bat + +