Pl3xMobLimiter
Description
Mob farms are one of the biggest lag creators on my server, so I create Pl3xMobLimiter to combat this by limiting the amount of mobs that can spawn within a certain radius. You can specify this by mob type in the config.yml file. This is multi-world supported so you can limit certain mobs only in certain worlds, etc.
Note: Setting too harsh of a restriction could also result in lag because the server is trying to spawn natural mobs all over the place and this plugin will negate that, causing the CPU to jump from overworking. Please be reasonable when setting your limits, for your user's sake and for you server's precious CPU.
By default all values are -1 in the config, meaning limiting for that mob/entity is disabled. Just change the value to the max number of that mob/entity type that you want to be able to spawn in the radius you have defined.
How it works: If you limit 20 creepers in a 10 block radius, when the 21st one spawns one of the creepers picked at random will despawn. This also work if the 21st creeper walked into the crowded radius so your users cant get around this by flowing mobs together with water or leading cows/etc with wheat.
Side Note: Because of how this plugin was built, it is possible to limit other entities that aren't mobs. These values have been included in the default for convenience.
As always, Enjoy! ^_^
Commands
- /pl3xmoblimiter (reload) View the plugin version or reload the config.yml values from disk.
Permissions
- pl3xmoblimiter.pl3xmoblimiter Allows access to the /pl3xmoblimiter command
Default Configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | debug-mode: false color-logs: true enabled: false radius: 8.0 check-delay: 20 maximum: dropped_item: -1 experience_orb: -1 painting: -1 arrow: -1 snowball: -1 fireball: -1 small_fireball: -1 ender_pearl: -1 ender_signal: -1 thrown_exp_bottle: -1 item_frame: -1 wither_skull: -1 primed_tnt: -1 falling_block: -1 firework: -1 boat: -1 minecart: -1 minecart_chest: -1 minecart_furnace: -1 minecart_tnt: -1 minecart_hopper: -1 minecart_mob_spawner: -1 creeper: -1 skeleton: -1 spider: -1 giant: -1 zombie: -1 slime: -1 ghast: -1 pig_zombie: -1 enderman: -1 cave_spider: -1 silverfish: -1 blaze: -1 magma_cube: -1 ender_dragon: -1 wither: -1 bat: -1 witch: -1 pig: -1 sheep: -1 cow: -1 chicken: -1 squid: -1 wolf: -1 mushroom_cow: -1 snowman: -1 ocelot: -1 iron_golem: -1 villager: -1 ender_crystal: -1 splash_potion: -1 egg: -1 fishing_hook: -1 lightning: -1 weather: -1 player: -1 complex_part: -1 unknown: -1 override: world: sheep: 25 world2: slimes: 15 |
TODO
Nothing at the moment.
-
View User Profile
-
Send Message
Posted Aug 30, 2016Still working in Spigot 1.10.2.
Good plugin!
-
View User Profile
-
Send Message
Posted Apr 2, 2016working perfect in 1.9
-
View User Profile
-
Send Message
Posted Aug 31, 2015congratulations for this excellent plugin!
-
View User Profile
-
Send Message
Posted May 18, 2014I would love this, but I want to set it only in a certain area (certain mob spawner)
-
View User Profile
-
Send Message
Posted Jan 26, 2014override doesnt work
-
View User Profile
-
Send Message
Posted Nov 5, 2013@MohammadCreeper
I dont support anything except CraftBukkit. Too many forks out there to be supporting them all. I cannot be held responsible for the changes any fork has made that break normal Bukkit functionality. Spigot is a known offender as they have changed how mobs spawn to "reduce lag."
-
View User Profile
-
Send Message
Posted Nov 5, 2013If you use this plugin with Spigot, the server will crash. [SEVERE] net.pl3x.moblimiter.runners.CheckCount.run(CheckCount.java:29)
Please fix.
-
View User Profile
-
Send Message
Posted Jun 8, 2013Thank you, using it now.
-
View User Profile
-
Send Message
Posted Jun 6, 2013Not So Bad :D