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 May 19, 2014How can I save Iron Golems? And Snow golems? From the Lagg killmobs command
-
View User Profile
-
Send Message
Posted May 18, 2014@Octyenoch
Yes it deletes all mobs no matter what type they are. I'll likely implement some feature to directly designate what type of mob should be killed.
-
View User Profile
-
Send Message
Posted May 18, 2014yup, its the mob-live time...I reduced it down to 1 minute and tested, it quickly deletes all mobs.. comments aren't that intuitive about the fact that it doesn't just affect hostiles but all mobs...will have to disable that one ;)
-
View User Profile
-
Send Message
Posted May 18, 2014@Octyenoch
realized I probably needed to give more info. I generated new config file, I do have "live-time" on, could that be doing it? does it consider pigs and sheep "mobs" that it removes?
would I have to add all animals to the 'mob-filter' under kill-mobs or something?
-
View User Profile
-
Send Message
Posted May 18, 2014put 2.7.0 in his morning, now ppl are saying animals in their farms are being removed, is this a bug or something in this? I notice 2.7.1 is already submitted for approval, is this a bug fix version that may correct it?
-
View User Profile
-
Send Message
Posted May 18, 2014@bob7l
Thanks for re-adding.
-
View User Profile
-
Send Message
Posted May 18, 2014@OMEGA48
Idk how i managed to leave out an entire command... Added in 1.7.1 and released (Wait until bukkit approves)
If your a plugin dev and you really need it simply open your coding program, and add this line anywhere in ur plugin
new ChunkUnloadCmd().load();
-
View User Profile
-
Send Message
Posted May 18, 2014@Justmeitis
What.. bukkit version r u using lol...?
That means your CraftBukkit doesn't contain an event for entityspawning. And lagg-clear DOES NOT remove mobs unless you add them to the list. That's a removal list. Everything set to true is also removed.
-
View User Profile
-
Send Message
Posted May 18, 2014What happened to the unload chunks command?
-
View User Profile
-
Send Message
Posted May 18, 2014I was wrong, when restarting i spotted this in console:
[16:03:29 ERROR]: [ClearLag] Plugin ClearLag v2.7.0 has failed to register events for class me.minebuilders.clearlag.listeners.ChunkEntityLimiterListener because org/bukkit/event/entity/EntitySpawnEvent does not exist.
-
View User Profile
-
Send Message
Posted May 18, 2014No error msg this time, but had this: I had listed a lot of mobs to be excempt from /lagg clear however they all gone.. horses, cows everything now trying to reverse what i have done from backups
-
View User Profile
-
Send Message
Posted May 18, 2014I like how you have set all the features to 'false'. It allows downloaders to selected what they want active. Well Done!
-
View User Profile
-
Send Message
Posted May 17, 2014I am not sure but since I installed this. The Sheep, tamed wolves, chicken, cows despawn for no apparent reason. Horses and donkeys did not, gladly! But I did have those protected from the kill mobs command. But I also had wolves on there, how can i make it so it protects our pets? Tamed or untamed? Also with teh ocelot and cat
-
View User Profile
-
Send Message
Posted May 17, 2014@Sprunkas
You must mean a configurable feature that allows the setting of a maximum amount of mobs being spawned at the same time from a Mob Spaner (Block)?
Or maybe a limit of mobs per radius that can be spawned from an Egg Spanwer?
Both those features are available. Make sure you are using the latest release.
-
View User Profile
-
Send Message
Posted May 17, 2014Can you add feature that we can configure limits that can spawn mobs from spawners?
-
View User Profile
-
Send Message
Posted May 16, 2014@Antibes
I need more then "it resets the config". If the config is automatically resetting, it's possible your yaml code is displaced. run it through a parser.
-
View User Profile
-
Send Message
Posted May 16, 2014(Please update Config Setup, and include Custom Clears setup)
What does the world filter in custom clears do exactly? I set a word inside this section with the intention that the clears should not be done in this world.
But it seem's that the custom clear is ignoring this, and doing it anyway in all worlds.
-
View User Profile
-
Send Message
Posted May 16, 2014Don't know how to use CustomClears in the game. Can anyone help with it?
-
View User Profile
-
Send Message
Posted May 16, 2014@bob7l
1.7.0 update or 2.7.0?
The config resets if I change the autoremoval-interval from its default of 460.
-
View User Profile
-
Send Message
Posted May 16, 2014@bob7l
Hi, do you think this will be solved because i will need your new version? Im using 1.7.9. dev.
[14:37:27 WARN]: Unexpected exception while parsing console command "lagg clear" org.bukkit.command.CommandException: Unhandled exception executing command 'lagg' in plugin ClearLag v2.6.3 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-1-g5786276-b3085jnks] at me.Incomprehendable.WorldPlugins.FakeSimpleCommandMap.dispatch(FakeSimpleCommandMap.java:99) [?:?] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-1-g5786276-b3085jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:688) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-1-g5786276-b3085jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:296) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-1-g5786276-b3085jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:261) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-1-g5786276-b3085jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-1-g5786276-b3085jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-1-g5786276-b3085jnks] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-1-g5786276-b3085jnks] Caused by: java.lang.NullPointerException at me.minebuilders.clearlag.managers.EntityManager.removeEntity(EntityManager.java:29) [?:?] at me.minebuilders.clearlag.commands.ClearCmd.run(ClearCmd.java:17) [?:?] at me.minebuilders.clearlag.commands.BaseCmd.processCmd(BaseCmd.java:34) [?:?] at me.minebuilders.clearlag.listeners.CommandListener.onCommand(CommandListener.java:25) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-1-g5786276-b3085jnks]