ClearLagg


Clearlag was designed to reduce lagg on Bukkit/Spigot servers by removing entities, and preventing it through it's many optional features. Of course this plugin can't fix all lag, but it does clear most of it. If your using a larger server with 20+ players, simply using the /lagg clear command can drastically decrease RAM/CPU usage by simply removing your configured entities.

- Permission support
- Entity limiter
- Reduces lag
- Decreasing RAM/CPU usage
- Ability to stop a TNT chain reaction
- Option to limit mob spawners
- Locate overcrowded/abused chunks
- Many easy to use commands
- Real-time module controls
- Very lightweight - only enables selected features
- Remove old logs upon enabling server
- Limit AI processing attributes
- Console support for most commands
- Can adjust times when the server is cleared of lagg
- Completely configurable

| Command | Description | Permission |
|---|---|---|
| /lagg clear | (Clears entities) | lagg.clear |
| /lagg check [world1 world2...] | (Counts all entities) | lagg.check |
| /lagg reload | (Reloads schedulers/config) | lagg.reload |
| /lagg killmobs | (Kills mobs) | lagg.killmobs |
| /lagg area <radius> | (Removes entities within given radius) | lagg.area |
| /lagg unloadchunks | (Unloads un-needed chunks) | lagg.unloadchunks |
| /lagg chunk [amount] | (Locate possible laggy chunks) | lagg.chunk |
| /lagg tpchunk <x> <z> <world> | (Teleport to chunks) | lagg.tpchunk |
| /lagg admin | (Manage clearlag's modules) | lagg.admin |
| /lagg gc | (Attempt to free memory) | lagg.gc |
| /lagg tps | (View current TPS) | lagg.tps |
| /lagg halt | (Temporary disable basic server functions [mob spawning and so on]) | lagg.halt |
| /lagg | (Shows helpful page) |
lagg.help |

| Name | Description | Link |
|---|---|---|
| SaveDeathDrops | (Blocks clearlag from removing items dropped from death) | Download Link |
Helpful video made by cobwebster
Helpful video by RayoTutoriales (Español)
Still have a question?
If you are having issues or cannot get the plugin to function properly, feel free to open a ticket, explaining your problem in detail will help me help you!
[Please note]
This plugin contains an auto-updater which will request, or download, updated files of Clearlag directly from this page. To disable this feature, open the config.yml, under plugins/Clearlag, and set auto-update to false.
Please do not post an issue until you've fully read the config located under /plugins/Clearlag/config.yml
Maintained Clearlag page: https://www.spigotmc.org/resources/clearlagg.68271/


-
View User Profile
-
Send Message
Posted Feb 17, 2014For some reason custom mob spawning is ignoring both the value in the config (I set it to false and its on) and its disrespecting this plugin (http://dev.bukkit.org/bukkit-plugins/tardisweepingangels/) by altering the armor the mobs wear.
Can you fix this??
-
View User Profile
-
Send Message
Posted Feb 17, 2014I figured out how to get it so certain mobs to not be cleared by editting config file
http://prntscr.com/2te1uk
Use Entity IDs instead of Mob names (if names dont work for you)
there are a few parts in the config where you can do this not just here
Also Great plugin much better than NoLagg which causes random crashes from BKcommonLib requirement
-
View User Profile
-
Send Message
Posted Feb 16, 2014I have 3 Ideas.
1. Minimum Item Threshold
Sometimes clearlagg runs when it doesn't need to, such as when there are only 10 or 20 clearable items. There could be a minimum threshold setting so items will only be cleared when there are more than <threshold> clearable items. Example: (With a threshold of 50) Clearlagg announces items will be cleared in a minute, but after a minute there are not 50 clearable items, so it says "clearlag delayed" or something. Later, 50+ items are dropped so it once again schedules a clearlag, announcing that items will be cleared in a minute.
2. Maximum Age Threshold.
When an Item entity is created it starts out with an Age NBT Tag with a value of 6000 (game ticks, 5 minutes), and despawns when that age reaches 0 or with this plugin, whenever clearlagg runs. On the servers I have been on users are annoyed because clearlagg destroys their items right when they die or secods after. With a maximum Age threshold of say 5400, only items older than 30 seconds will be cleared, giving players a chance to hit the respawn button and maybe collect the items. The /lagg clear command should follow this rule and there should be an emergency admin bypass for this such as /lagg force which forces all items to be destroyed despite age.
3. /lagg time
/lagg time check - check time until next clearlagg /lagg time set - set time until next clearlagg
-
View User Profile
-
Send Message
Posted Feb 16, 2014Found a Bug.
Setting lightlevel: 4 will only allow spawning of friendly mobs during total darkness, meaning nighttime and in the shade.
so if you are trying to spawn mobs then that would be the issue
-
View User Profile
-
Send Message
Posted Feb 15, 2014I need help plz for some reason I cant get auto-removal to work. I set it up exactly how I should have but nothing happens in the game! Any help would be appreciated.
-
View User Profile
-
Send Message
Posted Feb 13, 2014@AlphaFarer
awesome, thank you for the help, i hope this will track down whichever plug is doing it :)
-
View User Profile
-
Send Message
Posted Feb 13, 2014@mal67
Because other plugin instantly loads them again, run /timings on and you will see which one plugin is loading chunks if you need additional help pm me.
-
View User Profile
-
Send Message
Posted Feb 12, 2014serious issue here. i dont know what is causing it. not even sure if its this plugin. but im asking for help where i can.
i obviously realize that this is the auto clear function from clearlag doing what i told it to do. but my problem is, why are there 17,462 chunks loaded on my server if noone is online.. it does this for many thousands of lines. and why are they not unloading.
any help is greatly appreciated. thank you.
-
View User Profile
-
Send Message
Posted Feb 12, 2014Love Clearlag! Its a great plugin.
But would love to see a Live-time change as its a big part of my mob management on my still kind of new server. This one setting was really able to simplify a lot of issues i was having with mob rates from different sources. Sadly i was recently informed that it also kills peoples farm animals and will have to go back to the drawing board in my mob spawning control over the server. So just to post some feedback... it would be awesome if there was a separate setting for animal and mob here.
live-time: enabled: true interval: 300 mobtimer: true + animaltimer: false itemtimer: true moblivetime: 900 + animallivetime: 60000 itemlivetime: 3600
-
View User Profile
-
Send Message
Posted Feb 11, 2014Can you PLEASE make it so that a players death items will be removed after a specified time along with dropped items removed? Example:
Every 30 seconds players death items are removed.
Every 5 minutes dropped items are removed.
Thank you!
-
View User Profile
-
Send Message
Posted Feb 9, 2014@XxSabsss
http://dev.bukkit.org/bukkit-plugins/clearlagg/files/4-clear-lagg-with-config-v1-3-1/
-
View User Profile
-
Send Message
Posted Feb 9, 2014I need ClearLagg plugin for 1.2.5 plz someone help me if u know a link to download it for 1.2.5 send it to me plz.
-
View User Profile
-
Send Message
Posted Feb 8, 2014In the help page what does it mean when it says unloads unused chunks, does that mean that it gets rid of all chunks without someone there or with no building on it?
-
View User Profile
-
Send Message
Posted Feb 8, 2014hey i have a major problem. i was using clear lagg today and it was working just fine till i stop my server. now i have no commands. i've deleted both the plugin n folder n reinstalled but the commands are still missing, i was wondering if anyone could help me with this issue.
-
View User Profile
-
Send Message
Posted Feb 8, 2014Is it possible to add a dog from Doggy talent mod is the filter Clear lagg ?
I use "DTDoggy" in the filter but don't work it seems.
Any idea ?
-
View User Profile
-
Send Message
Posted Feb 6, 2014Perfectly awesome! Now I can run a personal server on my poor old Pentium on only 1Gb of RAM and still manage to have a few palyers on and not make it lag to death :D
At any rate, I would like to see an update where you can choose the kinds of entities that it clears, and have it default so that utility/friendly mobs (horses, sheeps etc.) would be left alone.
-
View User Profile
-
Send Message
Posted Feb 3, 2014Thx =D
-
View User Profile
-
Send Message
Posted Feb 1, 2014@Staindbullet1
Same problem here! I'm very sad!
-
View User Profile
-
Send Message
Posted Jan 31, 2014Here's my config... Hope it helps...
--------------#--------------#--------------#--------------# settings: auto-update: false enable-signs: true config-version: twelve disable-waterlife: false keep-spawn-in-memory: falsePuting this as false wont reset your config, but may cause bugs.. Still in testing! config-updater: force-update: false'check-radius' stands for the radius clearlag will check for nearby entities'max-mobs' is how many entities may be in the radius before the spawning is blocked mobegg-limiter: enabled: false check-radius: 8 max-mobs: 5THIS DOES NOT WORK WITH 1.6.4! chunk-limiter: enabled: false limit: 6000 create-new-chunks: trueThey may spawn with armor, even if it was spawned with commandsLower it is, the better your entity tick will beIf it's too high, expect bugs / lots of lagYou MUST reboot your server to use these, /lagg reload will NOT work... mob-range: enabled: false zombie: 30 skeleton: 30 creeper: 20Goes by seconds live-time: enabled: false interval: 10 mobtimer: true itemtimer: true moblivetime: 600 itemlivetime: 240This will also respect cancelations, unlike minecraft's native code custom-mobspawner: enabled: falsespawn-limiter: enabled: false interval: 15 monsters: 300 animals: 300
Dont use if you have CB or Spigot! item-merger: enabled: false radius: 6check: world-filter: - this_world boat: true falling-block: true experienceOrb: true painting: false projectile: true item: true itemframe: false minecart: true primed-tnt: true arrow: true snowball: true fireball: true ender-signal: true item-filter:
limit: enable-limit: true max: 1000 check-interval: 60 world-filter: - this_world broadcast-removal: true remove: boat: true falling-block: true experienceOrb: true painting: false projectile: true item: true itemframe: false minecart: true primed-tnt: true arrow: true snowball: true fireball: true ender-signal: true item-filter:
-
View User Profile
-
Send Message
Posted Jan 31, 2014Clear lag removes horses even after being added to the clear lag exception list. MAJOR BUG