Merge branch 'hackedinventory' into crp
This commit is contained in:
commit
0a156c5204
1 changed files with 2 additions and 2 deletions
|
|
@ -1081,7 +1081,6 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
else if (!Main.ServerSideCharacter || (Main.ServerSideCharacter && player.IsLoggedIn))
|
else if (!Main.ServerSideCharacter || (Main.ServerSideCharacter && player.IsLoggedIn))
|
||||||
{
|
{
|
||||||
string check = "none";
|
|
||||||
if (!player.HasPermission(Permissions.ignorestackhackdetection))
|
if (!player.HasPermission(Permissions.ignorestackhackdetection))
|
||||||
{
|
{
|
||||||
player.IsDisabledForStackDetection = player.HasHackedItemStacks(shouldWarnPlayer: true);
|
player.IsDisabledForStackDetection = player.HasHackedItemStacks(shouldWarnPlayer: true);
|
||||||
|
|
@ -1140,6 +1139,7 @@ namespace TShockAPI
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (check != "none")
|
||||||
player.IsDisabledForBannedWearable = true;
|
player.IsDisabledForBannedWearable = true;
|
||||||
|
|
||||||
if (player.IsBeingDisabled())
|
if (player.IsBeingDisabled())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue