Quick fix to debuffs and buffs on players.
This commit is contained in:
parent
e1cd9f6bd4
commit
3ee21ee57a
1 changed files with 6 additions and 0 deletions
|
|
@ -117,6 +117,7 @@ namespace TShockAPI
|
|||
{PacketTypes.PlayerSlot, HandlePlayerSlot},
|
||||
{PacketTypes.TileGetSection, HandleGetSection},
|
||||
{PacketTypes.UpdateNPCHome, UpdateNPCHome },
|
||||
{PacketTypes.PlayerAddBuff, HandlePlayerBuff},
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -789,5 +790,10 @@ namespace TShockAPI
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private static bool HandlePlayerBuff(GetDataHandlerArgs args)
|
||||
{
|
||||
return !args.Player.Group.HasPermission(Permissions.ignoregriefdetection);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue