Move TShock.CheckIgnores(TSPlayer) -> TSPlayer.CheckIgnores()

Note: This method really sucks and needs to be rebuilt anyway.
This commit is contained in:
Lucas Nicodemus 2017-12-16 01:03:05 -07:00
parent 9f7c3ead09
commit 1bee289daf
3 changed files with 30 additions and 30 deletions

View file

@ -285,6 +285,14 @@ namespace TShockAPI
public bool IgnoreActionsForClearingTrashCan;
/// <summary>CheckIgnores - Checks a players ignores...?</summary>
/// <param name="player">player - The TSPlayer object.</param>
/// <returns>bool - True if any ignore is not none, false, or login state differs from the required state.</returns>
public bool CheckIgnores()
{
return IgnoreActionsForInventory != "none" || IgnoreActionsForCheating != "none" || IgnoreActionsForDisabledArmor != "none" || IgnoreActionsForClearingTrashCan || !IsLoggedIn && TShock.Config.RequireLogin;
}
/// <summary>
/// The player's server side inventory data.
/// </summary>