Replace TSPlayer.IgnoreActionsForCheating w/ boolean
This replaces IgnoreActionsForCheating in TSPlayer with a new IsDisabledForStackDetection field that tracks the same basic data. The previous way we did this was storing a string as the "reason" why a player was disabled for cheating, but it only stored the last hacked item stack that caused the check to fail. Since we already have OnSecondUpdate which notifies on _all_ items, we don't need to store this info in such a useless way anyway. They'll find out in one second what they need to remove in a more alarmist way.
This commit is contained in:
parent
1ef28dfe0d
commit
7efcfd055f
5 changed files with 10 additions and 9 deletions
|
|
@ -1106,7 +1106,7 @@ namespace TShockAPI
|
|||
break;
|
||||
}
|
||||
}
|
||||
player.IgnoreActionsForCheating = check;
|
||||
player.IsDisabledForStackDetection = true;
|
||||
check = "none";
|
||||
// Please don't remove this for the time being; without it, players wearing banned equipment will only get debuffed once
|
||||
foreach (Item item in player.TPlayer.armor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue