Inactive [ADMN/MECH] NoSpawn v1.5.3 - Stop mobs from spawning [1000]

Discussion in 'Inactive/Unsupported Plugins' started by xXLupoXx, Apr 22, 2011.

  1. Offline

    xXLupoXx

    GreyBishop likes this.
  2. Offline

    pudd1nG

    Getting the same here. 818 using 1.5 noSpawn
     
  3. Offline

    xXLupoXx

    Ok strange, without warzone everything is ok I will look at it

    What version of War do you use? Cause I can't reproduce the error with War 1.5.1

    should be fixed, could you redownload the plugin and test it?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  4. Offline

    ToitagL

    Redownloaded, tested, and still got the issue, even on a test server without War plugin :) But works anyway, only got the errors at server start. Don't worry too much :) Your plugin still allow me to play on my aquatic world, which is impossible due to lag without it.
     
  5. Offline

    oliverw92

    Loving this plugin, however i've seen this a couple of times.

    Looks like you are deleting items from a list you are iterating over
     
  6. Offline

    xXLupoXx

    Strange I'm not deleting anything there... It's a simple loop that counts the mobs Oo
     
  7. Offline

    LeetPowerCraft

    Do you think you could add a feature to limit mobs by probability? I find that limiting the amount of mobs by number alone can be extremely difficult, especially if you're running a larger server and often results in alot of guessing and checking. The only other plugin that I know that let's you do this at this time is bMobs, which doesn't seem to be working on 818 for me, not to mention that the developer hasn't posted anything in weeks. Would be nice to know that there's an active plugin out there that does the same thing. =)
     
  8. Offline

    Blackstorm72

    Code:
    10:06:44 [SEVERE] Exception in thread "Thread-21591"
    10:06:44 [SEVERE] java.util.ConcurrentModificationException
    10:06:44 [SEVERE]     at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
    10:06:44 [SEVERE]     at java.util.AbstractList$Itr.next(AbstractList.java:343)
    10:06:44 [SEVERE]     at org.bukkit.craftbukkit.CraftWorld.getLivingEntities(CraftWorld.java:536)
    10:06:44 [SEVERE]     at me.xXLupoXx.NoSpawn.MobCounter.run(MobCounter.java:71)
    
    Yeah, from above it appears to do this at least 3 times a day, doesn't matter what build of Craftbukkit your on, even RB or unsupported.
    Seeing as its thread exceptions, it usually means it's not Thread-safe. I'm not a developer but desmin88 had this issue when he first created the backup plugin and from what I remember he used the Bukkit scheduler that made it thread-safe.

    Always gotta have a thread-safe plugin :)
     
  9. Offline

    xXLupoXx

    I think I can do that ;)


    Ok I will rewrite it so that it uses the bukkit scheduler.
     
  10. Offline

    LingYun

    Wooo~
    Thanks for the adding the limiting preference to your plugin :D
    That saved us and we can now turn mobs on both in nether and general world :cool:

    And about those errors, listed above - we had them too, like two times. Easy to find out that they occurred - mobs simply stop spawning at all. But restart saves us :p I wanted to post it here, but I see that you are working on it already =)

    Thanks for a great plugin ^_~
     
  11. Offline

    Blackstorm72

    Glad to hear! Your plugin works really well minus those minor errors :)
    Really appreciate your work :D
     
  12. Offline

    xXLupoXx

    RB 860 compatible and now uses bukkit scheduler let me know if the error occurs again ;)
     
  13. Offline

    Rowtag

    Doesn't work for me with 860... squids spawn everywhere :( There is no error.. works well when i'm going back to 848 before the spawn thing changed.
     
  14. Offline

    xXLupoXx

    Squids only?

    Edit:
    I tested it and for me no squids are spawning...

    Are you sure you disabled them?
     
  15. Offline

    Rowtag

    yes, there is a false @ the config, and the quids are limited to 20.
    Maybe there is another problem, i don't know at the moment :S
    I have to go back to 848.. then it works well with your plugin, i'll test again..

    Deleted the config file, reloaded the plugins, set squid limit to 20. Restartet whole server, now it works well. Thanks! Great Plug

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  16. Offline

    xXLupoXx

    Strange but glad to hear that it works ;)
     
  17. Offline

    LingYun

    I approve the squids issue. We had terrible lags today (after a 860 update), i thought our map is broken or smth like that. Tried all - removed plugins, restarted whole server -nothing helps.
    Then I typed /butcher and killed 700 (!) mobs... A bit later, I saw myself a huuuuuuge pile of squids near our port :D
    Eewwwwww! I hate them, they are ugly T_T

    Anyway, I will try to re-download your plugin, and make a new config, then fill it in from scratch.

    =)

    Really great plugin, that saves our lives... Screw those squids >_>


    *Update - so far, so good. They don't multiply now, like crazy =)

    It didn't work O_O
    They still multiply more then a number set.
    I have maximum limit of 150 and squids limit of 15
    Just killed 230 mobs....


    [edit]:
    Now a couple of hours passed - and it looks like it's working again. I'm really confused O_O

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  18. Offline

    Zombie Slippers

    Perhaps I am doing something wrong....? I downloaded and put it in the plugins folder, and edited the config to turn creepers false, did not work, changed limit of creepers to 1, still didn't stop from spawning, and still spawn 4 at a time in an open area. I then tried to block cows and pigs, but that did not work either? I set limits on everything to 5, and still kill 100-130 mobs at a time with /butcher.
    what am i missing? (using 860)
     
  19. Offline

    Darcion

    i redownloaded and have 860 but get this error in combination with spawnmob 1.9.4

    Code:
    2011-06-12 00:21:43 [SEVERE] Could not pass event CREATURE_SPAWN to NoSpawn
    java.lang.NullPointerException
        at me.xXLupoXx.NoSpawn.NoSpawnEntityListener.onCreatureSpawn(NoSpawnEntityListener.java:29)
        at org.bukkit.plugin.java.JavaPluginLoader$59.execute(JavaPluginLoader.java:654)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:232)
        at net.minecraft.server.World.addEntity(World.java:820)
        at org.bukkit.craftbukkit.CraftWorld.spawnCreature(CraftWorld.java:362)
        at com.jordanneil23.SpawnMob.Mob.spawn(Mob.java:61)
        at com.jordanneil23.SpawnMob.CommandHandler.perform(CommandHandler.java:438)
        at com.jordanneil23.SpawnMob.SpawnMob.onCommand(SpawnMob.java:121)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:712)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  20. Offline

    locutus

    Hi, I'm running B860 on a debian box, and Whenever I /rl I get a massive spam of
    19:27:41 [SEVERE] Nag author: 'xXLupoXx' of 'NoSpawn' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
     
  21. Offline

    LeetPowerCraft

    OMG really, yay! :D bMobs is currently broken and as far as I'm concerned is dead, so it would be really nice to see another plugin that has this feature. If you can get this work NoSpawn will officialy be my new favorite mob limiting plugin and I'll never look back. xD Thank you again!
     
  22. Offline

    xXLupoXx

    After the first start of the server it could be that the "old" mobs are safed so they don't spawn again.
    If you /butcher them (with WorldEdit) the plugin should begin to track the correct number
    Thanks I will shut it down correct ;)
    Does this appear if you spawn a mob or if you shut down /reload the server?
     
  23. Offline

    Darcion

    it comes normal and without SpawnMob too

    Code:
    2011-06-12 13:01:01 [SEVERE] Could not pass event CREATURE_SPAWN to NoSpawn
    java.lang.NullPointerException
        at me.xXLupoXx.NoSpawn.NoSpawnEntityListener.onCreatureSpawn(NoSpawnEntityListener.java:29)
        at org.bukkit.plugin.java.JavaPluginLoader$59.execute(JavaPluginLoader.java:654)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:232)
        at net.minecraft.server.World.addEntity(World.java:820)
        at net.minecraft.server.TileEntityMobSpawner.g_(TileEntityMobSpawner.java:73)
        at net.minecraft.server.World.cleanUp(World.java:1091)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:395)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  24. Offline

    WinSock

    Someone just posted this in my thread for my plugin when its related to yours, i do not think you squashed your multi-threading bugs yet.
    http://pastebin.com/d7kt6sTX

    Edit:
    @xXLupoXx
    Just to help I decompiled your plugin and "World.getLivingEntities()" @ Line 72 of MobCounter.java, is not thread safe, change scheduleAsyncRepeatingTask to scheduleSyncRepeatingTask. Trust me this will not add any lag, I have like 3 Synchronous Tasks that call getEntities(There are more Entities than Living Entities) and my plugin causes no lag to the server.

    The reason that you get a concurrent modification exception is because Minecraft is either adding or removing an entity on its own thus modifying the LivingEntity Array.
     
  25. Offline

    waawaamp

    this plugin is aces and is the only thing that stops slimes spawning in and around my citadel.

    the limiter is golden too since 800+ mobs would usually spawn on my server. cut it down to 100.

    thanks for all your hard work writing this.
     
  26. Offline

    xXLupoXx

    Thanks for this tip;) I've updated and reuploaded it
     
  27. Offline

    Spycoclown

    Code:
    java.lang.NullPointerException
            at me.xXLupoXx.NoSpawn.NoSpawnEntityListener.onCreatureSpawn(NoSpawnEntityListener.java:29)
            at org.bukkit.plugin.java.JavaPluginLoader$59.execute(JavaPluginLoader.java:654)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:232)
            at net.minecraft.server.World.addEntity(World.java:820)
            at net.minecraft.server.SpawnerCreature.spawnEntities(SpawnerCreature.java:133)
            at net.minecraft.server.World.doTick(World.java:1595)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:392)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:312)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    14:00:20 [SEVERE] Could not pass event CREATURE_SPAWN to NoSpawn
    What can i change so i dont get this message anymore?
     
  28. Offline

    Darcion

    with 1.5.2 maybe mobspawner in combination with spawnmob .19.4 bring this error from time to time on bukkit 860

    Code:
    2011-06-13 16:28:48 [SEVERE] Could not pass event CREATURE_SPAWN to NoSpawn
    java.lang.NullPointerException
        at me.xXLupoXx.NoSpawn.NoSpawnEntityListener.onCreatureSpawn(NoSpawnEntityListener.java:29)
        at org.bukkit.plugin.java.JavaPluginLoader$59.execute(JavaPluginLoader.java:654)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:232)
        at net.minecraft.server.World.addEntity(World.java:820)
        at net.minecraft.server.TileEntityMobSpawner.g_(TileEntityMobSpawner.java:73)
        at net.minecraft.server.World.cleanUp(World.java:1091)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:395)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  29. Offline

    Sleaker

    That NPE is caused by bukkit initiating the creature spawn events while the plugin is still loading or some funky stuff like that. the plugin needs to be adjusted for some null checks on it's config values most likely. I know I had to fix mine a while back for a bug identical to this.
     
  30. Offline

    Zombie Slippers

    Code:
    14:01:58 [SEVERE] Could not load 'plugins\NoSpawn.jar' in folder 'plugins':
    mapping values are not allowed here
     in "<reader>", line 7, column 59:
         ... se                BlockBlacklist: ''
                                             ^
    
    What do I need to change so that it works?
     
  31. Offline

    phondeux

    Found a bug; my world name is world.biome ... your plugin creates the following structure;
    Code:
    worlds:
        world:
            creature:
                Creeper:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
    ... deleted a bunch of creatures for brevity ...
                Skeleton:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
            biome:
                creature:
                    Creeper:
                        spawn: true
                        BlockBlacklist: ''
                        Limit: 0
    You can see it makes a sub group because of the period in the world name.
     

Share This Page