EntitySuppressor
EntitySuppressor is a plugin designed to prevent unnecessary amounts of Mobs from spawning on your server, thus reducing server lag. It does this by supplying an efficient multi-step process to limiting monsters.
Code is written almost entirely by myself. Also see bergerkiller's NoLagg for further Lag-Fixes. Credit to NoLagg & LexManos's PerformanceTweaks for some original concepts.
Features!
Quote:
- Multiworld compatibility!
- Limits Monsters, Squid, Animals, Bats, and Villagers to configureable amounts in rather efficient way.
- Can limit how far and/or how many layers away monsters spawn.
- Reduces the frequency of mob-spawn ticks.
- Only limits naturally spawned and spawner-spawned Mobs.
- When a world has reached it's maximum, spawner mobs are queued until there is room.
- Ability to remove far away unnecessary monsters.
- Does not remove mobs that have picked up player items.
- Commands to count the number of living entities.
- Commands to remove living entities.
- Reloadable config.
- Configurable debug mode that prints extra information.
- CraftBukkitUpToDate compatibility.
- Anonymous statistic reporting to mcstats.org!
Commands & Permissions
- /es count - Returns a count of all Living Entities in the current world.
- /es remove <all / monsters / animals> - Removes all of the specified entity group from the current world.
- esuppressor.remove - Required to use /es remove.
- If "all" is added to the end of either of the above commands, it will do it in all worlds.
- If <world> is added to the end of either of the above commands, it will only do it in the specified world.
- /es reload - Reloads the config.
- esuppressor.reload - Required to use /es reload.
@Asura23
Not as of now. Minecraft's spawn engine will keep trying to spawn monsters until it hits its own internal limit, so it won't effect mob numbers.
@Colraw
I'm going to rewrite the config world handling tonight, and remove it's dependency on loaded worlds. That should fix it once and for all.
heya, just like thealmightypsycho i get errors (since a whle back) saying null pointer in date
and this is with following cfg (or delete and let ES generate a new one from scratch)
Is there a possibility to set it ONLY to de-spawn (far) far-away mobs and not limit the spawn,..?
Eh well I have multiple plugins that act on MV worlds just fine, as I presume many other servers do :o
@Joymo
Hmmm.. perhaps Bukkit doesn't like returning multiworld worlds? That doesn't make much sense.
This actually:
java.lang.NullPointerException at Fishrock123.EntitySuppressor.ESConfig.load(ESConfig.java:130)
Config file: http://pastie.org/3159503
@predawnia
Already has multiworld support.
Add new worlds in the format of the default ones.
Fishrock123, will ES have multiworld support? I am using MyWorlds.
@Joymo
NullPointerException at ESConfig.java:106 or 123?
Having same issue as psycho, and I quadruple checked my spaces...
22:41:11 [SEVERE] Error occurred while enabling EntitySuppressor v2.0.1 (1L9) (Is it up to date?): null java.lang.NullPointerException
@predawnia
See these two posts: http://forums.bukkit.org/threads/fix-admn-mech-entitysuppressor-v2-0-1-limit-monsters-reduce-lag-1-0-1-r1.39794/page-2#post-849266
I deleted the config and lead the plugin create a new one and I still get the error msg: [INFO] ES: Generating New Config File... [INFO] ES: Adding Header to config.yml... [INFO] ES: Loading Config File... [SEVERE] Error occurred while enabling EntitySuppressor v2.0.1 (1L9) (Is it up to date?): null java.lang.NullPointerException at Fishrock123.EntitySuppressor.ESConfig.load(ESConfig.java:123) at Fishrock123.EntitySuppressor.EntitySuppressor.initialize(EntitySuppressor.java:61) at Fishrock123.EntitySuppressor.EntitySuppressor.onEnable(EntitySuppressor.java:44) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
@thealmightypsycho
Your config is probably not formatted correctly. there must be two spaces before each world, and a colon and space before the number.
SPACE SPACE <worldname> : SPACE INTEGER
Only use regular notepad or textedit.
If it persists, contact me again.
I'm getting this error when the new version. I am using Linux and java 1.7. Starts up fine with ES 1.4 [SEVERE] Error occurred while enabling EntitySuppressor v2.0.1 (1L9) (Is it up to date?): null java.lang.NullPointerException at Fishrock123.EntitySuppressor.ESConfig.load(ESConfig.java:123) at Fishrock123.EntitySuppressor.EntitySuppressor.initialize(EntitySuppressor.java:61) at Fishrock123.EntitySuppressor.EntitySuppressor.onEnable(EntitySuppressor.java:44) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
@predawnia
Yes, but you should turn off NoLagg's monster, squid, and animal limits while using this plugin.
Hi. I am using NoLagg with spawn limits. Is this plugin compatible with NoLagg?
@TowelieDOH
See this: http://forums.bukkit.org/threads/fix-admn-mech-entitysuppressor-v2-0-limit-monsters-reduce-lag-1-0-1-r1.39794/page-3#post-891949
Several issues with the latest version of the plugin (v 2.0) with the latest Recommended CB (#1597) - When attempting to use the /es command (any sub-command) i get an internal server error - The mob limiter works great BUT nether always has 0 mobs despite me setting it to 1000 Please help, i love the latest version and the feature of removing distant mobs, but i am stuck in using the previous due to these very serious bugs.
OK. Seems I'm still being stupid. LOL. I'll sit tight.