Fixed exploit where cheaters can send chat as other people
This commit is contained in:
parent
100d7d10f3
commit
5fe2462193
1 changed files with 13 additions and 0 deletions
|
|
@ -212,6 +212,19 @@ namespace TShockAPI
|
|||
Tools.HandleCheater(ply);
|
||||
}
|
||||
}
|
||||
else if (e.MsgID == 0x19)
|
||||
{
|
||||
byte ply;
|
||||
using (var br = new BinaryReader(new MemoryStream(e.Msg.readBuffer, e.Index, e.Length)))
|
||||
{
|
||||
ply = br.ReadByte();
|
||||
}
|
||||
if (e.Msg.whoAmI != ply)
|
||||
{
|
||||
//fuck you faggot
|
||||
Tools.HandleCheater(ply);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void OnGreetPlayer(int who, HandledEventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue