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

    WinSock

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

    waawaamp

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

    xXLupoXx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks for this tip;) I've updated and reuploaded it
  6. Offline

    Spycoclown

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

    Darcion

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

    Sleaker

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

    Zombie Slippers

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

    phondeux

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

    LeetPowerCraft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This doesn't seem to work for me anymore.... I raised the TotalMobLimit from what I originally had to 200 because users were complaining that there were too few mobs. Ever since I raised the mob limit mobs have stopped spawning completely. Yes, yes, I have mobs turned on in my server.properties.
  12. Offline

    Darcion

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    after removing all the mobspawner (configured with spawnmob) i didn't see any of this errors.
  13. Offline

    Blechbuexse

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Code:
    world:
            creature:
                Creeper:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Chicken:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Sheep:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Giant:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Zombie_Pigman:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Slime:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Spider:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Pig:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Squid:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Wolf:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Zombie:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Cow:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Ghast:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
                Skeleton:
                    spawn: true
                    BlockBlacklist: '20;4'
                    Limit: 0
            properties:
                TotalMobLimit: 0
    
    ...and my home is safe?

    :)

    nice toll
  14. Offline

    TelephoneKiosk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does the /allowspawn command work with Monsters?
  15. Offline

    theVanyr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just dropping in to say: Thank you. This is a great Plug-in, no issues, easy to manage, and our community build projects have been creeper safe ever since I installed it.
  16. Offline

    ಠ_ಠ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does this only stop the natural spawns? or does it stop ALL spawns?
  17. Offline

    Cryt

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Work in 953 ?
  18. Offline

    Keyle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    In 1.5.2 it stops ALL spawns.
    v1.5.3 only stops normal spawns (also egg, bed-spawns)
    only unusual spawns like from plugins aren't stopped
    1.5.3 works with RB953

    1.5.3
    download here
  19. Offline

    Xmillsa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just thought id pop in to say, 1.5.2 is working fine for me with RB953.
  20. Offline

    Avaran

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey!
    How come when i type "/nospawn spawn pig 2" i get the error "spawn isn't a valid parameter! Please use allowspawn, denyspawn, despawn, setmoblimit, settotalmoblimit or settimer"
    Im not sure if im doing it right or wrong?
  21. Offline

    phondeux

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Was this ever fixed?
  22. Offline

    Steve Member

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    1.5.3 is causing 100% cpu and unusable server here on b953
  23. Offline

    Keyle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I removed the spawncommand from the plugin because there is no need anymore(for this plugin)
    please use anotherplugin to spawn creatures.
    this is not a bug in this plugin, it's a problem with the yaml format. A .(dot) is the delimiter in the plugin to jump in a deeper node
    please try this:
    Code:
    worlds:
        'world.biome':
            creature:
                Creeper:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
    ... deleted a bunch of creatures for brevity ...
                Skeleton:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
    But I think it will cause the same problems
    remove the .(dot) in the name and everything will work fine

    sure that THIS plugin cause it??
    I will look on it
  24. Offline

    ಠ_ಠ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i get this error now...

    Code:
    22:51:05 [SEVERE] Error occurred while enabling NoSpawn v1.5.3 (Is it up to date?): For input string: ""
    java.lang.NumberFormatException: For input string: ""
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:470)
        at java.lang.Integer.parseInt(Integer.java:499)
        at me.xXLupoXx.NoSpawn.ConfigBuffer.getBlacklist(ConfigBuffer.java:181)
        at me.xXLupoXx.NoSpawn.ConfigBuffer.readConfig(ConfigBuffer.java:105)
        at me.xXLupoXx.NoSpawn.NoSpawn.onEnable(NoSpawn.java:35)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
  25. Offline

    Keyle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I think you have " (double quotes) in your config :p
    replace them with ' (single quotes)
    When it still don't work post your config please
  26. Offline

    ಠ_ಠ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No double quotes :\ is it because they have to spawn on at least one block? but even then, i see them spawning in caves when the only block i allow is soulsand...
    Code:
    properties:
        RefreshTimer: 200000
    worlds:
        world_nether:
            creature:
                Creeper:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Chicken:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Sheep:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Giant:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Zombie_Pigman:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
                Slime:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Spider:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Pig:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Squid:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Wolf:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Zombie:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Cow:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Ghast:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Skeleton:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
            properties:
                TotalMobLimit: 0
        world:
            creature:
                Creeper:
                    spawn: true
                    BlockBlacklist: '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;71;72;73;74;75;76;77;78;79;80;81;82;83;84;85;86;87;88;89;90;91;92;93;94;95;96'
                    Limit: 0
                Chicken:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
                Sheep:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
                Giant:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
                Zombie_Pigman:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
                Slime:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Spider:
                    spawn: true
                    BlockBlacklist: '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;71;72;73;74;75;76;77;78;79;80;81;82;83;84;85;86;87;88;89;90;91;92;93;94;95;96'
                    Limit: 0
                Pig:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
                Squid:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Wolf:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
                Zombie:
                    spawn: true
                    BlockBlacklist: '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;71;72;73;74;75;76;77;78;79;80;81;82;83;84;85;86;87;88;89;90;91;92;93;94;95;96'
                    Limit: 0
                Cow:
                    spawn: true
                    BlockBlacklist: ''
                    Limit: 0
                Ghast:
                    spawn: false
                    BlockBlacklist: ''
                    Limit: 0
                Skeleton:
                    spawn: true
                    BlockBlacklist: ''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;71;72;73;74;75;76;77;78;79;80;81;82;83;84;85;86;87;88;89;90;91;92;93;94;95;96''
                    Limit: 0
            properties:
                TotalMobLimit: 0
    
  27. Offline

    Keyle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Your problem is that you have 2 single qoutes before and after the value at:
    Worlds -> world - >Skeleton -> BlockBlacklist

    and why didn't you disable Zombies,Creeper,Skeletons and Spiders at all??
    if they don't can spawn at all blocks you can also set spawn to false :confused:
    That is easier to configurate and better for server perfomance
  28. Offline

    ಠ_ಠ

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Because if i disable them completly, they wont spawn from their spawners. i just dont want them randomly in caves or above ground. its a complicated server idea i have xD :p
  29. Offline

    Pim1234

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    does limit: 0 means it is not limited?
  30. Offline

    Keyle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes 0 means no limit
  31. Offline

    DevRW

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just a heads up; conflicts with a fairly popular plugin: MobArena

    Whether or not you want to look at fixing it is up to you, just giving you a heads up. :)

    I tried blocking mobs in every possible way I could, but they spawned in arenas with grass blocks every time - even when added to a blacklist. And never any errors.

    My post from their thread:
  32. Offline

    Chris Herbert

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Not sure if this a problem with Bukkit #1000+ or if its always had this problem. I installed it to day and my processor usage shot up to between 100 and 140% with only 15 players on.

    I removed the plugin and it dropped back to a more reasonable 50-60%

Share This Page