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
|
|
@ -350,6 +350,15 @@ namespace TShockAPI
|
|||
SendData(PacketTypes.PlayerTeam, "", Index);
|
||||
}
|
||||
|
||||
public virtual void Disable()
|
||||
{
|
||||
LastThreat = DateTime.UtcNow;
|
||||
SetBuff(35, 330); //Silenced
|
||||
SetBuff(33, 330); //Weak
|
||||
SetBuff(32, 330); //Slow
|
||||
SetBuff(23, 330); //Cursed
|
||||
}
|
||||
|
||||
public virtual void Whoopie(object time)
|
||||
{
|
||||
var time2 = (int)time;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue