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
|
|
@ -1798,7 +1798,7 @@ namespace TShockAPI
|
|||
args.Player.LoginFailsBySsi = false;
|
||||
|
||||
if (args.Player.HasPermission(Permissions.ignorestackhackdetection))
|
||||
args.Player.IgnoreActionsForCheating = "none";
|
||||
args.Player.IsDisabledForStackDetection = false;
|
||||
|
||||
if (args.Player.HasPermission(Permissions.usebanneditem))
|
||||
args.Player.IgnoreActionsForDisabledArmor = "none";
|
||||
|
|
@ -1870,7 +1870,7 @@ namespace TShockAPI
|
|||
args.Player.LoginFailsBySsi = false;
|
||||
|
||||
if (args.Player.HasPermission(Permissions.ignorestackhackdetection))
|
||||
args.Player.IgnoreActionsForCheating = "none";
|
||||
args.Player.IsDisabledForStackDetection = false;
|
||||
|
||||
if (args.Player.HasPermission(Permissions.usebanneditem))
|
||||
args.Player.IgnoreActionsForDisabledArmor = "none";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue