Inventory Limiter

About

InventoryLimiter is a Bukkit/Paper plugin that enforces item quantity caps in player inventories. It limits Totems of Undying to 4 and Ender Pearls to 16 per player, including hotbar and offhand slots. The plugin prevents item pickup when the cap is reached, intercepts inventory clicks including shift-click, number-key swaps, cursor placement, and drag operations, and blocks hopper transfers that would exceed limits. When excess items are forcibly injected, it automatically removes the overflow and drops it naturally near the player, ensuring no item duplication or loss. The implementation uses robust event handling across pickup, crafting, and inventory change events to maintain consistent enforcement.