Replace TSPlayer.IgnoreActionsForDisabledArmor -> boolean
TSPlayer.IgnoreActionsForBannedArmor was useless because it only stored the last armor/dye a player had. Replaced with a boolean.
This commit is contained in:
parent
7efcfd055f
commit
4e186e7375
5 changed files with 11 additions and 10 deletions
|
|
@ -1801,7 +1801,7 @@ namespace TShockAPI
|
|||
args.Player.IsDisabledForStackDetection = false;
|
||||
|
||||
if (args.Player.HasPermission(Permissions.usebanneditem))
|
||||
args.Player.IgnoreActionsForDisabledArmor = "none";
|
||||
args.Player.IsDisabledForBannedWearable = false;
|
||||
|
||||
args.Player.SendSuccessMessage("Authenticated as " + account.Name + " successfully.");
|
||||
TShock.Log.ConsoleInfo(args.Player.Name + " authenticated successfully as user " + args.Player.Name + ".");
|
||||
|
|
@ -1873,7 +1873,7 @@ namespace TShockAPI
|
|||
args.Player.IsDisabledForStackDetection = false;
|
||||
|
||||
if (args.Player.HasPermission(Permissions.usebanneditem))
|
||||
args.Player.IgnoreActionsForDisabledArmor = "none";
|
||||
args.Player.IsDisabledForBannedWearable = false;
|
||||
|
||||
|
||||
args.Player.SendMessage("Authenticated as " + args.Player.Name + " successfully.", Color.LimeGreen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue