StopThatLag!
StopThatLag!
Finally, a super simple lag-stopping plugin, especially designed for servers where machines could be left on such as Tekkit or Feed The Beast servers!
New version should still be compatible back as far as Tekkit Classic (1.2.5)
How it works
Simply use /stl or /stopthatlag and remove entities, and then be warned about chunks that exceed a certain amount of items! StopThatLag will even tell you human-readable coordinates that you can go to in order to get to that chunk, not those silly "chunk coordinates" that make absolutely no sense at all. In the configuration file, you can also set it up to automatically clean up floor items! (Hint: Check out the automation: section)
Coming soon: Logging chunks that are causing lag (when cleaned up with automation)
Permissions
Should work with all the major permissions plugins, assuming that they all properly use bukkit's built-in superperms.
Command(s) | Permission Node | Usage |
---|---|---|
/stl | stopthatlag.clean | Cleans up lag-causing entities |
/stl reload | stopthatlag.reload | Reloads config file |
stopthatlag.* | Gives permission to both of the above |
Configuration
Go check out the Configuration Page as it will always be up to date with the latest release!
Output
StopThatLag will output a display as such:
and if you have chunks with excessive lag:
Metrics
This plugin uses Metrics (mcstats.org) and you may opt-out if you wish by going into plugins/PluginMetrics/config.yml and setting opt-out to true.
If you would like to buy me a coffee each month, just throw a pledge on my Patreon page!
great plugin!
can it be set so only wild horses despawn?
Thanks
@Pyvesb
Users of modded servers beware:
Entity watch is not compatible with forge servers from any version from 1.5.2 to 1.7.10. It will delete every single entity type no matter what one you select in the command. It will also not only spam the crap out of your chatbox in game it will add hundreds if not thousands of lines of logs to your console and server log every time you run his plugin.
Doing the command "/ew clear 1 items" resulted in it removing everyone's tamed animals, farm animals, paintings, item frames from my spawn and everyone's homes, and much more damage.
When mentioning these issues he then replied to me that "He does not support anything but bukkit and he will not help fix any issues on modded servers" When this plugin WAS MADE for modded servers and claims his plugin has more features then STL when he wont even support Cauldron.
Got bukkit/spigot? EntityWatch might be for you, but honestly id go to ClearLagg. Modded servers? Stick with STL.
What amazes me is he says he only supports bukkit. Cauldron IS Bukkit with Forge.
EDIT: It seems Pyvesb also cannot accept someone giving negitive comments about his plugin on his own page. Shortly after posting about how Cauldron = Bukkit and how Bukkit = Dead due to mojangs interference with bukkit.org and the DMCA take-down days later and how him not supporting Cauldron did not make any sense, he deleted my comment on his page.
Hi there!
You should try out EntityWatch, it works with the later versions of Minecraft and is much more feature-packed and efficient!
Link: http://dev.bukkit.org/bukkit-plugins/entity-watch/
@Dirtwrap
From the looks of it, It looks like some other plugins are incompatible with the plugin.
version 0.4 is no compatible with tekkit classic 1.2.5 i got here
2014-09-06 12:08:37 [WARNING] Failed to handle packet: java.lang.NullPointerException java.lang.NullPointerException at nl.taico.tekkitrestrict.logging.TRLogEnhancer.isLoggable(TRLogEnhancer.java:83) at nl.taico.tekkitrestrict.logging.TRFilter.isLoggable(TRFilter.java:137) at java.util.logging.Handler.isLoggable(Unknown Source) at java.util.logging.StreamHandler.isLoggable(Unknown Source) at java.util.logging.StreamHandler.publish(Unknown Source) at java.util.logging.ConsoleHandler.publish(Unknown Source) at java.util.logging.Logger.log(Unknown Source) at java.util.logging.Logger.doLog(Unknown Source) at java.util.logging.Logger.log(Unknown Source) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:848) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:799) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:781) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:234) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:119) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:579) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:467) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 2014-09-06 12:08:49 [INFO] Dirtwrap [/192.168.1.64:49999] logged in with entity id 445 at ([world] -341.9412412559141, 75.0, 68.68298058763564) 2014-09-06 12:08:55Dirtwrap: /home 2014-09-06 12:08:58Dirtwrap: /home home 2014-09-06 12:09:10 [INFO] [33;1mRemoving lag-causing entities![m 2014-09-06 12:09:10 [WARNING] Unexpected exception while parsing console command org.bukkit.command.CommandException: Unhandled exception executing command 'stl' in plugin StopThatLag v0.4 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at forge.bukkit.ForgeCommandMap.dispatch(ForgeCommandMap.java:55) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:497) at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:493) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:625) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:593) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:467) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NoClassDefFoundError: org/bukkit/entity/FallingBlock at com.maxpowa.stopthatlag.StopThatLagMain.isLagEntity(StopThatLagMain.java:277) at com.maxpowa.stopthatlag.StopThatLagMain.stopLag(StopThatLagMain.java:226) at com.maxpowa.stopthatlag.StopThatLagMain.onCommand(StopThatLagMain.java:163) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 8 more 2014-09-06 12:09:27 [WARNING] Failed to handle packet: java.lang.NullPointerException java.lang.NullPointerException at nl.taico.tekkitrestrict.logging.TRLogEnhancer.isLoggable(TRLogEnhancer.java:83) at nl.taico.tekkitrestrict.logging.TRFilter.isLoggable(TRFilter.java:137) at java.util.logging.Handler.isLoggable(Unknown Source) at java.util.logging.StreamHandler.isLoggable(Unknown Source) at java.util.logging.StreamHandler.publish(Unknown Source) at java.util.logging.ConsoleHandler.publish(Unknown Source) at java.util.logging.Logger.log(Unknown Source) at java.util.logging.Logger.doLog(Unknown Source) at java.util.logging.Logger.log(Unknown Source) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:848) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:799) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:781) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:234) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:119) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:579) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:467) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
It's a good plugin, but I have a major suggestion that could make it 100% better! Add a warning message! By warning I mean BEFORE the clean-up happens, not after! For example, "Ground Items Will Be Removed In X Seconds!" Please Add This!
It's good that I have an opportunity to translate warning on cleanup, but, unfortunately, not completely. Players receive message like: <My Russian analog of 'Cleaning up floor items!'> approximately in <delay-amount> seconds. How to fix it?
@Maxpowa
Getting this error when the server shutsdown:
EDIT: Getting another error when doing reload commands in the server:
@MazQuick
I will expand functionality for custom messages next update, right now you can customize the message that displays when cleanup happens, but not other times.
@ursak
It will if they are instances of the entity types chosen in the config. Snippet from default config shown below. If they don't match any of the entity types set to true then they won't be cleaned up.
Please add customizable messages and it will be my favourite plugin out there.
Cheers.
So if I use Custom NPC's plugin. Will this remove them as well?
@British89
Ah sorry, I'll fix that. Must be that Metrics uses something that is only available in the newer Bukkit APIs. Should be easy enough to fix, just bundle an older version of metrics as well as the latest.
Edit: v0.4 uploaded, should fix issues with pluginmetrics and 1.2.5.
Hiyah,
I am trying to use this plugin on Tekkit Classic 1.2.5 and i get this error on startup, Could you assist me please>?
Thanks.
EDIT: Reverting to v0.2 seems to work fine
Update has been approved! Thanks BukkitDev staff!
@sammyturbo123
It always has :) Check out the automation section in the config. The interval is in seconds, so for 30 minutes you'd have to use interval: 1800
Will it have a timer so it clears lag every 30mins for example ?
Just throwing this out there while it makes its way through the approval process.
StopThatLag! v0.3 is released! Made some minor changes to the automation system, allowing exclusion of specific worlds as well as warning messages before cleanup, with a configurable warning period. Best part of this? It's still compatible all the way back to 1.2.5! All of you Tekkit Classic server owners can rejoice :)
@ratchetgame98
No it will not.
The End Of Stream message is simply NOTHING to worry about. It is either when a player crashes(client side, most of the time) or then they hit the "x" button without leaving the server first.
Technically, it can be caused by lag, but it would be mainly client-side problems.
@Maxpowa
NP, i got craftbook to add the function to an IC.
Beside, i can't get STL to work inside mobarena in bukkit 1.6.2 and 1.6.4
Will this plugin stop users from logging out unexpectedly with the End Of Stream message, because I think that message comes on because of lag
@fungreenfox
Ok, working on WorldEdit integration for defining an area which should be cleared. I think I'll be able to set up alternate timings for them too.