diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index 3c747b9d..71ad2124 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -1275,27 +1275,6 @@ namespace TShockAPI return true; } - /// - /// Gives an item to the player. Includes banned item spawn prevention to check if the player can spawn the item. - /// - /// The item ID. - /// The item name. - /// The width of the receiver. - /// The height of the receiver. - /// The item stack. - /// The item prefix. - /// True or false, depending if the item passed the check or not. - [Obsolete("Use the GiveItemCheck overload with fewer parameters.")] - public bool GiveItemCheck(int type, string name, int width, int height, int stack, int prefix = 0) - { - if ((TShock.Itembans.ItemIsBanned(name) && TShock.Config.PreventBannedItemSpawn) && - (TShock.Itembans.ItemIsBanned(name, this) || !TShock.Config.AllowAllowedGroupsToSpawnBannedItems)) - return false; - - GiveItem(type, name, width, height, stack, prefix); - return true; - } - /// /// Gives an item to the player. ///