Specify which item is causing a player to be disabled. Fixes #909.

This commit is contained in:
Enerdy 2015-05-02 03:03:41 +01:00
parent 03c1182f27
commit f4fa624936
2 changed files with 67 additions and 69 deletions

View file

@ -871,7 +871,6 @@ namespace TShockAPI
}
player.IgnoreActionsForCheating = check;
check = "none";
//todo: pretty sure we check every place a players inventory can change, so do we really need to do this?
foreach (Item item in player.TPlayer.armor)
{
if (Itembans.ItemIsBanned(item.name, player))