Replace TSPlayer.IgnoreActionsForInventory => IsDisabledForSSC.

This is the first commit in a series to rewrite CheckIgnores()
into whatever its replacement becomes.

IgnoreActionsForInventory was probably used by the SSC system prior
to when we had in-game support for SSC (ergo, when we just checked
to make sure you had removed all items before joining and worked
our way up in inventory data to track it). I could be wrong about
this though.

Now, IsDisabledForSSC tracks only if a player is shut down due to
SSC, rather than a reason that gets broadcast.
This commit is contained in:
Lucas Nicodemus 2017-12-20 16:52:49 -07:00
parent 4fa0f888ea
commit 1ef28dfe0d
5 changed files with 11 additions and 10 deletions

View file

@ -855,9 +855,9 @@ namespace TShockAPI
{
args.Player.SendErrorMessage("Disabled for banned armor: " + args.Player.IgnoreActionsForDisabledArmor);
}
else if (args.Player.IgnoreActionsForInventory != "none")
else if (args.Player.IsDisabledForSSC == true)
{
args.Player.SendErrorMessage("Disabled for Server Side Inventory: " + args.Player.IgnoreActionsForInventory);
args.Player.SendErrorMessage("Disabled. Server side characters is enabled, and you aren't logged in.");
}
else if (TShock.Config.RequireLogin && !args.Player.IsLoggedIn)
{