diff --git a/EXILED/Exiled.API/Features/Player.cs b/EXILED/Exiled.API/Features/Player.cs index 314817264..0a2b20b4f 100644 --- a/EXILED/Exiled.API/Features/Player.cs +++ b/EXILED/Exiled.API/Features/Player.cs @@ -2478,6 +2478,15 @@ public void ResetAmmoLimit(AmmoType ammoType) /// If the player has a custom limit for the specific . public bool HasCustomAmmoLimit(AmmoType ammoType) => CustomAmmoLimits.ContainsKey(ammoType); + /// + /// Gets the maximum amount of an the player can hold, based on the armor the player is wearing, as well as server configuration. + /// + /// The to check. + /// The maximum amount of items in the category that the player can hold. + [Obsolete("Use Player::GetCategoryLimit(ItemCategory, bool) instead.")] + public int GetCategoryLimit(ItemCategory category) => + InventorySystem.Configs.InventoryLimits.GetCategoryLimit(category, referenceHub); + /// /// Gets the maximum amount of an the player can hold, based on the armor the player is wearing, as well as server configuration. ///