The server now informs you of what list you were on when you are booted.

This commit is contained in:
Shank 2011-06-03 04:18:36 -06:00
parent cd0382f3e4
commit ebfe78d12a
2 changed files with 10 additions and 2 deletions

View file

@ -282,9 +282,16 @@ namespace TShockAPI
{ {
if (Main.netMode != 2) { return; } if (Main.netMode != 2) { return; }
string ip = Tools.GetRealIP((Convert.ToString(Netplay.serverSock[ply].tcpClient.Client.RemoteEndPoint))); 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."); 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)) if (!FileTools.OnWhitelist(ip))
{ {

View file

@ -69,7 +69,8 @@
</PreBuildEvent> </PreBuildEvent>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>$(SolutionDir)\myass.bat</PostBuildEvent> <PostBuildEvent>
</PostBuildEvent>
</PropertyGroup> </PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.