The server now informs you of what list you were on when you are booted.
This commit is contained in:
parent
cd0382f3e4
commit
ebfe78d12a
2 changed files with 10 additions and 2 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -69,7 +69,8 @@
|
|||
</PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>$(SolutionDir)\myass.bat</PostBuildEvent>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<!-- 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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue