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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    This post has been edited 1 time. It was last edited by xXLupoXx Mar 11, 2012.
    GreyBishop likes this.
  2.  
  3. Offline

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Updated see main post for changes

    818 compatible
  4. Offline

    ToitagL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hello,

    Looking for a plugin to use instead of bMods, I tested yours. Everything went well, except when the server loaded my Warzone, where i got this :
    Code:
    2011-06-02 00:56:03 [SEVERE] Could not pass event CREATURE_SPAWN to NoSpawn
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:388)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:138)
        at com.tommytony.war.jobs.RestoreWarzonesJob.run(RestoreWarzonesJob.java:29)
        at com.tommytony.war.volumes.Volume.resetBlocks(Volume.java:153)
        at com.tommytony.war.volumes.Volume.clearBlocksThatDontFloat(Volume.java:546)
        at com.tommytony.war.volumes.Volume.switchMaterials(Volume.java:499)
        at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:60)
        at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:92)
        at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:76)
        at net.minecraft.server.Chunk.addEntities(Chunk.java:470)
        at net.minecraft.server.World.a(World.java:1905)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:228)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.java.JavaPluginLoader$54.execute(JavaPluginLoader.java:619)
        at me.xXLupoXx.NoSpawn.NoSpawnEntityListener.onCreatureSpawn(NoSpawnEntityListener.java:27)
    Do you have an idea ?

    Thanks for your work ! Hope you can fix that :)
  5. Offline

    Owned645

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh my gosh oh my gosh thank you!! :D
  6. Offline

    Firelight7300

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Would Be Better if you can make the spawn command spawn mobs at where you're looking, not at where you are.
  7. Offline

    pudd1nG

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Getting the same here. 818 using 1.5 noSpawn
  8. Offline

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok strange, without warzone everything is ok I will look at it
  9. Offline

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What version of War do you use? Cause I can't reproduce the error with War 1.5.1
  10. Offline

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    should be fixed, could you redownload the plugin and test it?
  11. Offline

    ToitagL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  12. Offline

    oliverw92

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  13. Offline

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Strange I'm not deleting anything there... It's a simple loop that counts the mobs Oo
  14. Offline

    LeetPowerCraft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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. =)
  15. Offline

    Blackstorm72

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 :)
  16. Offline

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I think I can do that ;)


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

    LingYun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 ^_~
  18. Offline

    Blackstorm72

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Glad to hear! Your plugin works really well minus those minor errors :)
    Really appreciate your work :D
  19. Offline

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    RB 860 compatible and now uses bukkit scheduler let me know if the error occurs again ;)
  20. Offline

    Rowtag

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  21. Offline

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Squids only?

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

    Are you sure you disabled them?
  22. Offline

    Rowtag

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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..
  23. Offline

    Rowtag

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Deleted the config file, reloaded the plugins, set squid limit to 20. Restartet whole server, now it works well. Thanks! Great Plug
  24. Offline

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Strange but glad to hear that it works ;)
  25. Offline

    LingYun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 =)
  26. Offline

    LingYun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  27. Offline

    Zombie Slippers

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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)
  28. Offline

    Darcion

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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)
  29. Offline

    locutus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  30. Offline

    LeetPowerCraft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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!
  31. Offline

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?
  32. Offline

    Darcion

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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)

Share This Page