Move inventory stack hack detection to TSPlayer

Only called in one method, the stack hack detection can move to
TSPlayer as it only ever operates on one player.

In a future commit, this will replace the stack hack detection
OnSecondUpdate() and also set the disabled flag if a player has
a hacked stack when called.
This commit is contained in:
Lucas Nicodemus 2017-12-21 10:57:46 -07:00
parent a8ad583c8c
commit b316ba8200
3 changed files with 209 additions and 198 deletions

View file

@ -1916,7 +1916,9 @@ namespace TShockAPI
if (!args.Player.HasPermission(Permissions.ignorestackhackdetection))
{
TShock.HackedInventory(args.Player);
// TODO: When checkignores gets merged, this needs to set the hacked item stack flag
// and get moved to bouncer
args.Player.HasHackedItemStacks(true);
}
if (TShock.Utils.ActivePlayers() + 1 > TShock.Config.MaxSlots &&