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/
Having some trouble with something called [CLAG] I set my ClearLag timer to 600 seconds and a 30 second delay, but when I look at the console, every minute, something called [CLAG] pops up and deletes entities. How do I get rid of CLAG? I don't want it to be that frequent.
@marvzzz23
Ur server can't connect to bukkitdev to check for the latest update, simply disable the autoupdater through the config..
I'm getting this error from the latest version. It looks like its a problem with the new update of JAVA.
2013-02-07 21:53:19 [SEVERE] Error occurred while enabling ClearLag v1.8.0 (Is it up to date?) java.lang.RuntimeException: java.net.SocketException: Connection reset at me.minebuilders.clearlag.Updater.read(Updater.java:603) at me.minebuilders.clearlag.Updater.readFeed(Updater.java:552) at me.minebuilders.clearlag.Updater.<init>(Updater.java:182) at me.minebuilders.clearlag.ClearLagMain.onEnable(ClearLagMain.java:19) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321) at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300) at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259) at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.URL.openStream(Unknown Source) at me.minebuilders.clearlag.Updater.read(Updater.java:599) ... 14 more
@chopstick121
The warning delay is how much sooner the warning is.. so make it
autoremoval-warningdelay: 10
and it will warn 10 seconds before
Source available? I wanna make some modifications C:
@bob7l
After looking into it, I believe the way Multicraft is executing these commands is my problem. The /lagg clear and /lagg unloadchunks commands actually work fine when I type it in from the console. But when the Multicraft scheduler runs these commands, the very low number of entities cleared is the result.
I crashed while it was loaded.
http://pastebin.com/Ae7JCHY8
"me.minebuilders.clearlag.ClearLagMain.onEnable(ClearLagMain.java:19)"
i have those second set on my time when the lagg clear later on the warning pop out how can i make it the warning before the clear
settings:
autoremoval-interval: 1800
warning:
autoremoval-warningdelay: 1700
@bob7l
Is there anyway to stop people from using the command /lagg ?
They can't use the commands i just don't want that command useable either.
Hello bob, I thought it would be neat if you could implement a couple of new features to go along with /lagg chunk. lagg chunk, is one of the most useful commands I have ever come across, and is the only thing that keeps my server stable by keeping large mob farms low. The only thing it lacks though, is an alert or automatic removal system. I was thinking that maybe once a set amount of mobs is in a chunk(that is configurable by the config), it will either alert a staff member or whom ever with a permission, or automatically remove those mobs. I think one of these features will greatly improve this command in your awesome plugin. Keep up the great work, and hope you consider these. Thanks. :P
@EncryptedCurse
Weird, it should be the exact same for both seeing as the command-sender isn't used to even retrieve the entities...
I don't believe commands like /lagg clear or /lagg unloadchunks work properly when executed from the console. Basically, I use Multicraft (server panel) to have these events scheduled every couple of minutes.
02.02 09:36:19 [Server] INFO You just removed 7 entities!
As you can see, it's a very low number, as compared to the usual 2,000 mobs that are removed when the command is ran by a user in-game.
@deleted_9935739
I don't think its possible since entities are all the same.. :s
Edit: Srry my bug is caused by nolagg. Ignore this post.
Great plugin works fine for me. P.S I'm a donator on your server.
Can you add an option to ignore certain drops from being removed? Ex diamonds, armor, etc.
@Chillstream
Impossible, your not reading the config right.. Read the tutorial i setup.
@John__B
Maybe if you actually read the config help i put up you wouldn't be having these problems.......
Clagg is removeing things i have set to * false* in the remove options.. Somthing iv done wrong here?
I'm having an issue with this removing things from worlds that arent even in the config..
how can i prevent this or is this a bug?