Farm Limiter
PluginLicenseRef-All-Rights-Reserved

Farm Limiter

The plugin monitors your server for large groups of entities and removes excess mobs when they exceed configured limits, while prioritizing important entities.

490
Downloads
0
Followers
4 months ago
Updated
📦
1
Versions

📖About Farm Limiter

Overview:
The plugin monitors your server for large groups of entities and removes excess mobs when they exceed configured limits, while prioritizing important entities.

Automatic Checking
Every 5 minutes (300 seconds - configurable), the plugin:

Scans all loaded worlds
Groups nearby entities within a 5-block radius
Counts entities of the same type in each group
Removes excess entities if they exceed the limit

Priority System
When removing entities, the plugin keeps entities with these characteristics:

Highest Priority (100 points): Named entities (with nametags)
High Priority (80 points): Tamed animals (pets)
Medium Priority (60 points): Saddled mobs (horses, pigs, striders)
Low Priority (40 points): Baby animals
Extra Priority (30 points): Leashed mobs
Bonus Priority (20 points): Mobs with passengers

Entities with lower priority scores are removed first.

If there are 50 chickens crammed in one area:

Plugin keeps the 15 most important chickens (named, tamed, etc.)
Removes the remaining 35 chickens
Broadcasts: "Removed 35 CHICKEN entities at spawn (100, 64, 200)"

Commands

/farms search - Manually check for farms and remove excess mobs
/farms reload - Reload configuration without restarting

What It Prevents
✅ Lag from 100+ chickens in 1-block farms
✅ Server crashes from massive mob grinders
✅ Performance issues from crowded animal pens
✅ Exploits using spawner-based farms

Result: Cleaner server, better performance, fair gameplay!