[INACTIVE][ADMN] MobLimiter v1.1 - Set Creature Limits and Blacklists! [617]

Discussion in 'Inactive/Unsupported Plugins' started by VicWhiten, Apr 1, 2011.

     
  1. Offline

    VicWhiten

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    MobLimiter
    Version: v1.11

    Download and Source: https://github.com/VicWhiten/MobLimiter
    Click the download link on github to download the jar

    After writing my RedstoneMobSpawn plugin, we had an issue where sometimes the mobs wouldn't spawn when the circuit was triggered. After looking into it, the server was using a custom version of WorldGuard that was edited to set a spawn limit to creatures. This was a pain, so I decided to write my own, separate plugin to limit mob spawning.


    Features:
    • Set a maximum amount of mobs that can be alive at one time!
    • Blacklist specific creatures to fit your server!
    • remove all creatures in your world with one command!
    • permission checks, either Op, GroupManager, or Permissions!
    Changelog:
    Version 1.11
    • Fixed commands
    • Fixed config-file generation

    Version 1.1

    • added permissions, either Op, GroupManager or Permissions
    • added blacklist commands
    • added purge command
    • updated for Minecraft Beta 1.4
    Version 1.0

    • Initial Release
    TODO:
    • Multi-world support[HIGH]
    • individual mob limits?[MEDIUM]
    Use:

    MobLimiter is a Bukkit Plugin for Minecraft that lets you limit creature spawn amounts and blacklist specific creatures.

    VALUES FOR MOBMAX:
    -1: No Limit (Default)
    0: No creatures will spawn
    x: x number of mobs is the limit, where x is a positive integer
    Config File:

    The config file is located in <plugin_location>/MobLimiter/config.yml . If the config file is not there, the plugin will generate a default one.

    mob-max: <amount> : sets the mob max to the amount
    mob-blacklist: arg1 arg2 arg3 ... argn : the list of mobs that will not spawn on your server

    Example Config File:
    mob-max: -1
    mob-blacklist: squid wolf sheep creeper

    Config File:
    /moblimiter setmax <amount> : sets the mob max to amount.
    /moblimiter purge : kills all mobs on the current world
    /moblimiter addblacklist <type> : adds the given creature type to the blacklist
    /moblimiter removeblacklist <type> : removes the given creature type from the blacklist
    Permissions:

    moblimiter.setmax
    moblimiter.purge
    moblimiter.blacklistHelp/Contact:

    Either respond here or email me at [email protected], and I'll try to get back to you ASAP!
    Maxwolf Goodliffe likes this.
  2.  
  3. Offline

    davr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I could use this for one of my worlds...for now I had to completely disable squids because too many spawned. But if I could limit it, that would be nice.

    Suggested features:
    * Allow different mob-max & mob-blacklist settings per world
    * Allow to configure mob-max per type of mob (eg so I could limit squid to 50, but let everything else grow as it will)

    Thanks!
  4. Offline

    Padathir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I can't get it to load.

    Code:
    22:17:06 [SEVERE] null loading MobLimiter v1.1 (Is it up to date?)
    java.lang.NullPointerException
            at com.bukkit.vicwhiten.moblimiter.MobLimiter.setupBlacklist(MobLimiter.java:113)
            at com.bukkit.vicwhiten.moblimiter.MobLimiter.onEnable(MobLimiter.java:67)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
  5. Offline

    mutiny

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  6. Offline

    dschmitt97

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  7. Offline

    EniGmA1987

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Would be great, but same:




    Latest recommended build (617) was used.
  8. Offline

    Deadchicken

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Multiverse Support would be great... I'd love to create some custom, zombie infested world for my players to explore and die in.
  9. Offline

    ManBearWaffle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The config.yml generation doesn't work. I had the same error as everyone else until I copied the example config. However, the commands to edit the config don't do anything. Editing the config file and restarting seems to work though.
  10. Offline

    MaltheF

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    wow this sound so amazing, my server always lag because of too many zombies, this sure would help
    gonna test it now

    not working as of 617
  11. Offline

    Joe_Young

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I second that multi-world support.
  12. Offline

    NiVangerow

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How to fix the problem you are all getting (me aswell) with this plugin:

    Basically it struggles to generate the settings files:

    1. Create a new folder within the plugins folder.
    2. Name it MobLimiter.
    3. Now create a blank config.yml file inside the MobLimiter folder.
    4. Paste this in the config.yml and change settings if needed:
    mob-max: -1
    mob-blacklist: none
    5. Run Bukkit.

    -Hope this helps you all.
  13. Offline

    EniGmA1987

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Once the plugin is fixed and working properly, can you work on adding lines in the config that let you set limits for individual types of monsters?

    For example:
    mob-max-skeleton: -1
    mob-max-zombie: -1
    mob-max-zombiepigman: -1
    mob-max-creeper: -1
    mob-max-spider: -1
    mob-max-ghast: 6
    mob-max-giant: -1
    mob-max-slime: 0
  14. Offline

    IOn Vash

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    it doesn't seem to limit the mobs at all even with the config. it also wont take commands every time you try to use a command it shows the help for the plugin.

    i did what NiVangerow said and im running the latest recommended version of craftbukkit.
  15. Offline

    NiVangerow

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Change
    mob-max: -1

    to whatever you need:

    mob-max: -1 = Default
    mob-max: 0 = No Mobs
    mob-max: # (#=number) = How many mobs can be alive at the same time (or spawn rate?)
  16. Offline

    IOn Vash

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i did it still doesn't work.
  17. Offline

    TheHamer

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    How am I supposed to download it?
  18. Offline

    bigbass1997

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    its not working for me either.

    (currently using CB 617)
  19. Offline

    Raptor2213

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Same issue, also 617.
  20. Offline

    NiVangerow

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I was using 612...
  21. Offline

    icephantom

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Whilst I'm no expert with this plugin, and I've only had it running for a couple of hours, it does work for me. I'm currently running bukkit #621. I tried the command /moblimiter purge and that was accepted at the console - came up with the message 'All mobs purged' - I'm an op on the server with NO permissions plugins at all (don't like them).
    I've setup the config file :
    mob-max: -1
    mob-blacklist: slime ghast

    I've been to the nether, and all ghasts are gone. I went down to my mine, which is usually swarming with slimes, and there were still just 2 about, killed them, and no more to be seen. I've since been away & back to my mine on numerous occasions, and I've not seen any more slimes, so perhaps a little glitchy, but it works for me. The only thing I haven't tried yet is to limit the amount of mobs - however that's not what I got it for. Since the bmobs plugin has not been updated I have been swamped by the invisible slime problem down in my mines since the MC1.4 update - i.e. getting killed by something I can't see. If this plugin gets rid of slimes (which for the most part it appears to), then I can use my mines again, and thats all I wanted it for - the ghasts was just a test, and that appears to work 100% - I've never seen any ghasts since activating this plugin.
    I can run further tests to see if the limiting works for this thread on bukkit #621, but it is certainly stopping on my server for now !
  22. Offline

    icephantom

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    For downloading, when you go to the github site by clicking https://github.com/VicWhiten/MobLimiter (which is at the top of this post), there is a 'downloads' button toward the right of the screen (assuming you have the browser full-screen - if you don't have it full-screen, you might not see the downloads button), click on that, there are 3 options - download tar.gz, download zip, or below those 2, there is a link in blue - Moblimiter.jar - click on this & you get the download - please follow instructions posted by @NiVangerow (above post #11)for manually setting up the config file - otherwise it'll spam your console with errors.
  23. Offline

    Poinball

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The config file is not Here for me ...

    I using CB 617 !
  24. Offline

    NiVangerow

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Make it like described in my post above....
  25. Offline

    IOn Vash

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ok i got it working. you need to have something in the blacklist for the plugin to work. i put none for a blacklist and now it works perfectly.

    also can you add multi-world support ?
  26. Offline

    Qiasfah

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Doesn't seem to work with ghasts.
  27. Offline

    MJRamon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thank you. We need multiworld support (I use MultiVerse)!
  28. Offline

    VicWhiten

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    did you add "ghast" or "ghasts"? The mob must be singular, this is the list of types you can add:

    CHICKEN
    COW
    CREEPER
    GHAST
    GIANT
    MONSTER
    PIG
    PIG_ZOMBIE
    SHEEP
    SKELETON
    SLIME
    SPIDER
    SQUID
    ZOMBIE
    WOLF
  29. Offline

    VicWhiten

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    VERSION 1.11 RELEASED!

  30. Offline

    daddycreeper

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can you please make it so purge has an option on if pet wolves should be deleted, and default it to 'NO'.

    Thank you, I will now go deal with my 12 angry players *loads wolf pound and tons of bones*
  31. Offline

    NEO

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Looks nice. Request, The option to limit and modify mob spawner's spawn rates globally.

Share This Page