Players who get disabled by internal anti spam and anti banned item checks will now get visual debuffs lasting 5 seconds. Note client can't bypass already, server drops many packets for the wait period.
This commit is contained in:
parent
d5affa3ba5
commit
e8a4cb6ae9
3 changed files with 30 additions and 18 deletions
|
|
@ -489,7 +489,7 @@ namespace TShockAPI
|
|||
{
|
||||
if (player.TileKillThreshold >= Config.TileKillThreshold)
|
||||
{
|
||||
player.LastThreat = DateTime.UtcNow;
|
||||
player.Disable();
|
||||
TSPlayer.Server.RevertTiles(player.TilesDestroyed);
|
||||
player.TilesDestroyed.Clear();
|
||||
}
|
||||
|
|
@ -502,7 +502,7 @@ namespace TShockAPI
|
|||
{
|
||||
if (player.TilePlaceThreshold >= Config.TilePlaceThreshold)
|
||||
{
|
||||
player.LastThreat = DateTime.UtcNow;
|
||||
player.Disable();
|
||||
TSPlayer.Server.RevertTiles(player.TilesCreated);
|
||||
player.TilesCreated.Clear();
|
||||
}
|
||||
|
|
@ -513,7 +513,7 @@ namespace TShockAPI
|
|||
}
|
||||
if(player.TileLiquidThreshold >= Config.TileLiquidThreshold)
|
||||
{
|
||||
player.LastThreat = DateTime.UtcNow;
|
||||
player.Disable();
|
||||
}
|
||||
if (player.TileLiquidThreshold > 0)
|
||||
{
|
||||
|
|
@ -521,7 +521,7 @@ namespace TShockAPI
|
|||
}
|
||||
if (player.ProjectileThreshold >= Config.ProjectileThreshold)
|
||||
{
|
||||
player.LastThreat = DateTime.UtcNow;
|
||||
player.Disable();
|
||||
}
|
||||
if (player.ProjectileThreshold > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue