
EntityLimiter - High Performance 1.0.1
A plugin to limit entities per chunk to prevent crashes and unwanted lag.
Overview
EntityLimiter is a lightweight, high-performance Bukkit plugin that monitors and controls entity counts within each chunk of your Minecraft server. By preventing entity buildup in specific areas, this plugin effectively eliminates lag caused by entity overcrowding while maintaining smooth gameplay.
Key Features
- Chunk-Based Entity Limiting: Define maximum allowed entities per type in each chunk
- Smart Entity Tracking: Asynchronous position monitoring with minimal performance impact
- Entity Type Filtering: Configure exactly which entities to limit (defaults to minecarts and dropped items)
- Dynamic Movement Handling: Intelligently manages entities as they move between chunks
- Thread-Safe Design: Built for stability on high-traffic servers
- Performance Optimized: Uses direct chunk coordinate tracking to prevent unnecessary chunk loading
- Real-Time Statistics: Monitor plugin performance with built-in command
- Fully Configurable: Easy-to-use configuration with per-entity type limits
Commands
- /entitylimiter - Shows plugin status, tracking statistics, and recent entity removals
Permissions
- entitylimiter.admin - Access to the EntityLimiter command (Default: OP)
Technical Details
Optimized Chunk Handling
Most entity-limiting plugins cause more lag than they solve by constantly loading and unloading chunks. EntityLimiter uses a more efficient approach:
- Direct chunk coordinate calculation without loading chunks
- Thread-safe concurrent hash maps for entity tracking
- Asynchronous position monitoring with minimal overhead
- Synchronized entity removal only when necessary
Smart Memory Management
The plugin automatically cleans up after itself:
- Entities are untracked when they despawn or die
- Empty collections are removed from memory
- Removals are logged efficiently with configurable history size
Perfect For
- Survival servers with item-heavy farms
- Economy servers with many dropped items
- Creative servers with redstone and minecart systems
- Any server experiencing entity-related lag
Installation
- Download the plugin
- Place in your plugins folder
- Start/restart your server
- Edit the configuration (optional)
- Enjoy lag-free gameplay!
Configuration
https://pastebin.com/nFYDntBq
Support
Having issues or need help? Feel free to leave a comment below or contact us through our support channels.