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 Apr 23, 2013Which command is the same like the autoclear for cleaning all worlds and having the broadcast of how many entities are being cleared?
-
View User Profile
-
Send Message
Posted Apr 23, 2013Amazing to see this plugin has 1,912,218 downloads xD Been using it since it was released
-
View User Profile
-
Send Message
Posted Apr 23, 2013Hi, i get this error to the console. What does it mean? http://dev.bukkit.org/paste/7626/
-
View User Profile
-
Send Message
Posted Apr 23, 2013@bob7l
Thjat is not what i meant.
You use this code:
http://pastiebin.com/51769b9ec2e16
WHat you do is get all chunks.
Unload all of them.
And then 89% of them gets directly loaded back in.
And minecraft's chunks system works like this:
When a player needs a chunk to be loaded it will check if there is an instance (PlayerChunk) if that chunk.
If not it creates that and loads the chunk from the disc.
The PlayerChunk class contains a list of all players using the chunk.
And when a player needs to unload it it removes the player form the list.
Unloading a chunk and unloading a chunk client-side is not the same thing.
The client ALLWAYS unloads chunks.
And calling chunk.unload(true, true) will save the chunk to the diskand remove it.
But when the chunk gets updated the PlayerChunk clas srelises there is no loaded chunk instance for hte chunk.
And it re-creates it,
For instance you have 5000 chunks loaded.
In one task it unloads ALL those chunks.
And when one tick later it loads all of them back in.
CraftBukkit has a build-in task that checks the player list in the PlayerChunk to see if it is empty.
And if it is the chunk instance rets removed.
Regards, lenis0012
-
View User Profile
-
Send Message
Posted Apr 23, 2013Hello, I am still having the config problem. It seems every time the server is restarted the config is set back to default.
-
View User Profile
-
Send Message
Posted Apr 22, 2013@bob7l
Could you please help me with the custom no remove item filter?
-
View User Profile
-
Send Message
Posted Apr 22, 2013@lenis0012
1. The chunk unload command has been updated (2.2.2) and is no longer unsafe
(It even saves the chunk before unloading) And yes for the most part bukkit DOES take care of unloading chunks (Which is why i made a chunk unload command and not a process). But there are many times were chunks DON'T unload properly.
2. This event is an extremely easy workaround so i don't have to use minecrafts code. Also, it doesn't count the entities from that event, it has an interval of which checks the world for living entities and then counts them.
3. This is not a bad system at all, it's designed for large explosions or small servers who cannot handle such block removal. Btw, it only removes PrimedTNT so your 4 - 1 tnt theory is incorrect.
All together, this system is VERY limited. I cannot do anything else at bukkits current API.
-
View User Profile
-
Send Message
Posted Apr 22, 2013A few things to complain about ClearLagg
1) the chunk unload commands is only cuasing lags because it unloads ALL chunks and then loads must of them back in.
And CraftBukkit already takes care of unloading unused chunks in a more safe way.
2) The mob limiter is using CreatureSpawnEvent wich is not verry acurate
3) If a player would place 4 tnt only 1 would explode.
And 4 tnt does not cause any lags at all, quite a bad system.
Im must worried about the chunk unload command.
However the drop removing function works great though
-
View User Profile
-
Send Message
Posted Apr 22, 2013@Nikecow
Thank you very much! Hopefully this will solve my problem.
-
View User Profile
-
Send Message
Posted Apr 22, 2013Im using the 1.4.7 and even if i set autoupdate to false it updates itself after a restart.
-
View User Profile
-
Send Message
Posted Apr 22, 2013@Erozionn
Auto-update is on and most updates reset the config I believe. This can cause some unexpected results and therefore I think this option should be 'false' by default and accompanied by a warning. Either that or make the configs auto updated ;) Just my thoughts.
-
View User Profile
-
Send Message
Posted Apr 22, 2013Hey, Im having a strange problem with ClearLagg. It seems every so often the plugin resets the config to its default. Any help would me very appreciated.
-
View User Profile
-
Send Message
Posted Apr 22, 2013I have a question. What does this part of the config mean?
mobs:
- None
- None
Anything you put there will be removed right?
-
View User Profile
-
Send Message
Posted Apr 21, 2013I can't get the item filter not to work, I add items to not be cleared, and then they end up being cleared.
-
View User Profile
-
Send Message
Posted Apr 21, 2013Fixed it
-
View User Profile
-
Send Message
Posted Apr 21, 2013@supersean62
You didn't use the mob nodes...
(If you read the
text you would of known..)-
View User Profile
-
Send Message
Posted Apr 20, 2013I read it.... I put remove: world-filter: - this_world broadcast-removal: true boat: true falling-block: true experienceOrb: true painting: true projectile: true item: true itemframe: false minecart: true primed-tnt: true arrow: true snowball: true fireball: true ender-signal: true mobs: - zombie - skeleton - creeper - spider - cave_spider - enderman - blaze - wither
This and mobs still don't get removed so don't say I never read the config..........
-
View User Profile
-
Send Message
Posted Apr 19, 2013@supersean62
-.-
Why don't people read the config? I honestly don't understand, why make a config if people can't take the time to use it?
-
View User Profile
-
Send Message
Posted Apr 19, 2013@supersean62
use a different scheduling plugin to execute the command for you...
-
View User Profile
-
Send Message
Posted Apr 19, 2013How do I make it clear mobs and items every 20 minutes?????????????