parent
dfc4325e59
commit
aca2b1a54f
1 changed files with 11 additions and 1 deletions
|
|
@ -360,7 +360,7 @@ namespace TShockAPI
|
|||
byte owner = br.ReadByte();
|
||||
byte type = br.ReadByte();
|
||||
|
||||
if (type == 29 || type == 28)
|
||||
if (type == 29 || type == 28 || type == 30)
|
||||
{
|
||||
if (!players[e.Msg.whoAmI].group.HasPermission("ignoregriefdetection"))
|
||||
{
|
||||
|
|
@ -397,6 +397,16 @@ namespace TShockAPI
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (e.MsgID == 0x1b) //PlayerDamage
|
||||
{
|
||||
using (var br = new BinaryReader(new MemoryStream(e.Msg.readBuffer, e.Index, e.Length)))
|
||||
{
|
||||
byte playerid = br.ReadByte();
|
||||
byte direction = br.ReadByte();
|
||||
Int16 damage = br.ReadInt16();
|
||||
byte pvp = br.ReadByte();
|
||||
}
|
||||
}
|
||||
else if (e.MsgID == 0x30)
|
||||
{
|
||||
using (var br = new BinaryReader(new MemoryStream(e.Msg.readBuffer, e.Index, e.Length)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue