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/
In reply to RagingPixelsYT:
Newer Minecraft versions have very... Strange chunk handling. It's not something I can fix in a plugin. You'll have to wait for either Spigot, or PaperSpigot to address these problems if not Mojang.
Good plugin I like a lot.
One question, how can I make users see clearlagg notices? is that they can not see
Is it with some permission?
In reply to marlon_omca:
bukkit.broadcast
Hello the plugin is amazing!
I just have a question, I use this plugin for survival minecraft, but every time it clears ground items it also clears minecarts (hopper minecart in exact) which some of us use for automatic farms, is there a way I could disable ClearLag from clearing hopper minecarts?
In reply to Forge_User_90545625:
Yes in the config
hi! this plugin is wonderful, thank you bob7l
Would you pls. clarify is "moblivetime" refers to all living creature (excluding players)?
Thanks.
In reply to resoluciones:
It should be clarified in the config somewhere.
liveTime represents how long the entity has lived in ticks (20 ticks a second). If the entity lived over say "moblivetime: 40", they'd be removed.
In a time where Spigot didn't exist, this would've been very useful. Although now you can specify arrow, and item livetime in the Spigot config and have it naturally despawn which I personally recommend. Although that feature doesn't extend to mobs, so I suppose you could still use that feature.
In reply to bob7l:
great, yes I use that feature through custom plugin & I agree with you that is very useful. So, I will use that feature of clearlagg and I won't need the other plugin anymore which is healthier for the server. I guess it works for all entities then, animals, mobs, ambient creatures, water creatures, etc, doesn't it?
Thanks.
The config has some errors. Make sure you run it through https://codebeautify.org/yaml-validator
My guess - if the problem isn't related to the broken config, is the chunk entity limiter is causing the removal.
Currently, on the server, nothing spawns. This didn't happen before I added clearlag onto the server. If I go in creative mode and spawn a cow from a spawn egg, it won't spawn. It'll make the sound of a cow, but won't actually spawn in. This happens with all mobs. People are complaining that mobs aren't spawning over the world, but idk how to fix it. I haven't enabled anything that disables mob spawning. If there's something wrong with my configuration, could someone tell me? If there's nothing wrong here, could the dev(s) take this into account for their next update?
https://pastebin.com/dYb6E7Fx
In reply to Forge_User_77344829:
Here's a fixed version of your config: https://hasteb.in/viriwoju.yaml
Currently testing the next version for release. It'll contain a new full-tick sampler that'll help diagnose whether your server is healthy, running very heavily, or is spiking.
The area filter doesn't seem to work properly for me, the minecarts keep disappearing. I checked the config and it is the default one. I am using version 1.14.2
In reply to LucidAPs:
Should already be a thing, but try finding/editing this:
#What type of entities SHOULD NOT be removed while doing /lagg area?
area-filter:
- Minecart
auto-removal:
minecart: false
#What should be removed during /lagg clear
command-remove:
world-filter:
# - this_world <-This world will be ignored during removal!
minecart: false
the link to Development builds: http://minebuilders.me:8080/job/Clearlag/
is not working. just wanted to see if you have a 1.14.2 version in the works :)
Hello ! Very good plugin works very well on my 1.14.2 survival server ! Btw I would like to know if it's possible to send commands in the "warnings" section instead of broadcast for the Auto Removal? An example :
warnings :
- 'time:840 /mycommand'
Because when I use this format it basically wrotte /mycommand in chat... Infortunately I didn't find much help about this in the Config Setup section. First question is, it is possible? If yes would you mind to help me?
We are having around 2000+ chunks loaded even though there are only a few players; whenever I do /lagg unloadchunks it always says 0 chunks loaded. this has been the case since the first time I ever used the command.
In reply to Type_3:
Like I said to the last guy, that issue cannot be resolved from a plugin. It's an internal issue. You need to figure out what's keeping those chunks loaded, if not just a bug. I'd recommend you to follow development builds and update as quickly as possible. 1.14+ builds are verrry unstable atm and will likely be for quite some time due to the major internal changes Mojang's been making
Hello. Help please.
In config.yml there is strings, that prevent entities from removing. But it doesn't work. They look like
area-filter:
- Minecart
... etc.
But all minecarts every time are to delete. Tried to change like "minecraft:Minecart" but it doesn't work.
Sorry for my poor english, hope, you will understand.
In reply to rm2kfiles:
Could you post your config, Minecraft version, and the error as a ticket? I can't seem to reproduce it