diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 1dac0977..85630089 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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)