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 Aug 16, 2015"mobspawner" radius(check-radius: y-radius) dont work! only "max-spawn" work, but in very small radius (10-15 blocks). http://pixs.ru/showimage/2015081702_9883105_18440578.png after 2-3 hours 1 mob-spawner on farm like this can spawning over 300 mobs. Not good!
I used CraftBukkit version git-Spigot-2f787bd-ea28011 (MC: 1.8.3) (Implementing API version 1.8.3-R0.1-SNAPSHOT)
plugin version: 2.8.2
P.S. Need to add local message to "mobegg-limiter" and "mob-breeding-limiter". Cause players dont know why he can't breeding animals when limit is reached.
-
View User Profile
-
Send Message
Posted Aug 14, 2015There are sound issues where it does not play the whole sound file. Running /lagg halt fixes the problem. The problem exists in worlds where there are no mobs and minimal entities, while not having a problem in worlds with many mobs.
It might help to find out what /lagg halt halts.
EDIT: Nevermind. Figured out it was a problem with a plugin called MobSpawnAnimations.
-
View User Profile
-
Send Message
Posted Aug 14, 2015@bob7l
How shall I send it to you? Email or do you have a different way?
-
View User Profile
-
Send Message
Posted Aug 10, 2015@Sikatsuu
No. That is due to mobs. Do /lagg killmobs
-
View User Profile
-
Send Message
Posted Aug 10, 2015Hi, In the config I have this:
So a chunk can have 300 entities. Someone made a mob spawners that will get him more than 300 entities on 1 block but after that it will start removing itemframes and armorstands from his area.
How can I make it so it doesn't remove itemframes and armorstands when I have the entity limit for chunks?
-
View User Profile
-
Send Message
Posted Aug 10, 2015So many entities, but it just removes a bit of them. This is due to ClearLag not removing items in unloaded chunks?
http://imgur.com/G21s2ZD
-
View User Profile
-
Send Message
Posted Aug 9, 2015@JakeRivingston
I neeeeeeeed the config to help you.
-
View User Profile
-
Send Message
Posted Aug 8, 2015Having an issue with ClearLagg clearing items so quickly that as soon as an item drops it clears, when I do /Lagg reload it fixes but only for a minute or two, running 1.7.9 bukkit, any ideas on how to fix?
-
View User Profile
-
Send Message
Posted Aug 7, 2015@bob7l
oh it's fixed now after a restart. before that it was showing 1790 and 1780 seconds XD
-
View User Profile
-
Send Message
Posted Aug 7, 2015@xSnowBlitzz718
That works fine for me? Try downloading the latest JAR
-
View User Profile
-
Send Message
Posted Aug 7, 2015@Pablo_M98
Yeah i no longer use bukkit's broadcast API because some users had weird permission setups. SO now the warnings are only sent to users - not the console.
-
View User Profile
-
Send Message
Posted Aug 7, 2015@wsos
Yes, of course. This happens with the default config. Edit: Okey, sorry. ClearLag messages now don't appear in the console.
-
View User Profile
-
Send Message
Posted Aug 7, 2015autoremoval-interval: 1800
warnings:
- time:1780 msg:&7[&bClear&cLag&7] &4Warning! &cEntities will be cleared in &7+remaining &cseconds!
- time:1790 msg:&7[&bClear&cLag&7] &4Warning! &cEntities will be cleared in &7+remaining &cseconds!
this used to work before but i guess it autoupdated and it changed? i want it to announce 10 and 20 seconds BEFORE the clearing happens, what should i put?
-
View User Profile
-
Send Message
Posted Aug 6, 2015@miki88mouse
Because the chunk most likely unloaded. Clearlag doesn't remove entities from unloaded chunks. Why? Well the only way to that would be to load every single chunk ever saved on your server (Which would not be good)
-
View User Profile
-
Send Message
Posted Aug 6, 2015@Pablo_M98
Did you add the ' ' in the config as stated in the update post? You need those added in order for them to work, as stated here, with example; http://i.imgur.com/VIj97De.png
-
View User Profile
-
Send Message
Posted Aug 6, 2015In ClearLag v2.8.2 auto-removal messages don't work in Spigot 1.8.8.
-
View User Profile
-
Send Message
Posted Aug 6, 2015"SHIT!" I can't see the picture! , this plugin can effectively solve the server memory problem, very good!
-
View User Profile
-
Send Message
Posted Aug 5, 2015Fixed the issue with wrong warnings times. Also found the source of the missing warning messages.
- 'time:5 msg:&cWarning!' - 'time:15 msg:&cWarning! Items will be cleared in +remaining seconds!'
Surround your message with '
-
View User Profile
-
Send Message
Posted Aug 5, 2015Also having this issue, this is supposed to be the 10 second message ( http://i.imgur.com/oum8N65.png ), and it's actually showing after 10 seconds after the clear lag happens, so it seems it kinda reversed. In the config, it says 470, so it seems to be counting down instead of up. I even tried changing it to 10, and that didn't work either.
However, am running version 2.8.0 on one of the servers on my network, and that seems to be working fine. Just needed to disable auto-update.
-
View User Profile
-
Send Message
Posted Aug 5, 2015@Mcraftpete
Glad I'm not the only one with this issue.