[INACTIVE] NoCivilSpawns v1.4.7 - allow/deny mob spawns in areas + world specific opts +whitelist

Discussion in 'Inactive/Unsupported Plugins' started by Sleaker, Apr 6, 2011.

  1. Offline

    Sleaker

    NoCivilSpawns:
    Version: v1.4.7
    Cancels spawning of creatures on trees, or inside player-made areas like CivilizedSpawns.

    WARNING: Because of Minecraft's Architecture and how it creates entity spawns, this plugin is highly discouraged for Production-Level servers and those which regularly run more than 15 users online at a time. Using NoCivilSpawns on high pop servers will most likely result in massive Tic degradation and an unstable server. You have been warned.

    Download: See Warning!
    Source Code
    Install:
    Download the NoCivilSpawns.jar and place it in your /plugins/ directory.

    See source code page for the readme on configuration options​
     
  2. Offline

    GoreMishap

    I planned to make a zoo on my server... can i "say" the mobs that they spawn in their enclosure?

    sry for bad english :(
     
  3. Offline

    Sleaker

    uh this doesn't let you make specific creatures spawn only in certain areas. it does the opposite. It makes sure a world-specific list of creatures doesn't spawn in certain areas.
     
  4. Offline

    GoreMishap

    oh ok

    (does anyone know a plugin which can do that? for 766)
     
  5. Offline

    Sleaker

    @GoreMishap please don't post requests for help finding unrelated plugins here, you can use the forum search features, or make a new thread asking for help in the appropriate sections. This topic is strictly related to my plugin, thanks.
     
  6. Offline

    GoreMishap

    ok sorry
     
  7. Offline

    EpicATrain

    Please update to 818. Thank you.
     
  8. Offline

    Sleaker

    *changes title* -
    @EpicATrain - Happy? Cause I'm guessing you didn't bother trying to load it up?
     
  9. Offline

    EpicATrain

    Thank you sir!
     
  10. Offline

    Sleaker

    You realize I did absolutely nothing to the code right? Basically, please actually try running the plugin before asking for an update.
     
  11. Offline

    EpicATrain

    I try to avoid that so I can avoid headaches. :-\
     
  12. Offline

    trigger281

     
  13. Offline

    Sleaker

    @trigger281 you aren't using a whitelist are you? I think I tracked that down.
     
  14. Offline

    EpicATrain

    I have the same problem -

    I use Residence plugin and I just turned monster spawning off. All of a sudden i get this error.

    Code:
    2011-06-02 23:57:49 [SEVERE] Could not pass event CREATURE_SPAWN to NoCivilSpawns
    java.lang.NullPointerException
        at com.sleaker.NoCivilSpawns.NoSpawnCreatureSpawnEvent.onCreatureSpawn(NoSpawnCreatureSpawnEvent.java:45)
        at org.bukkit.plugin.java.JavaPluginLoader$54.execute(JavaPluginLoader.java:619)
        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:228)
        at net.minecraft.server.World.a(World.java:1905)
        at net.minecraft.server.Chunk.addEntities(Chunk.java:470)
        at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:76)
        at org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:398)
        at org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:348)
        at com.onarandombox.Rigby.MultiVerse.MVCommands.worldCreateImport(MVCommands.java:212)
        at com.onarandombox.Rigby.MultiVerse.MVCommands.MVImport(MVCommands.java:47)
        at com.onarandombox.Rigby.MultiVerse.MultiVerse.onCommand(MultiVerse.java:176)
        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:281)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
        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:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I ONLY get this message when the server first starts up and ONLY then. Otherwise, this error doesn't show up.

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

    Sleaker

    @EpicATrain - What version are you using? cause I just put up a new version that should fix this.
     
  16. Offline

    EpicATrain

    i will redownload and test out.
     
  17. Offline

    K3kz0r

    I get the following error with NoCivilSpawns v1.4.5 and Bukkit build 818:
    Code:
    2011-06-04 14:08:51 [SEVERE] Could not pass event CREATURE_SPAWN to NoCivilSpawns
    java.lang.NullPointerException
            at com.sleaker.NoCivilSpawns.NoSpawnCreatureSpawnEvent.onCreatureSpawn(NoSpawnCreatureSpawnEvent.java:45)
            at org.bukkit.plugin.java.JavaPluginLoader$54.execute(JavaPluginLoader.java:619)
            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:228)
            at net.minecraft.server.World.a(World.java:1905)
            at net.minecraft.server.Chunk.addEntities(Chunk.java:470)
            at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:76)
            at org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:398)
            at org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:348)
            at com.elmakers.mine.bukkit.persistence.dao.WorldData.getWorld(WorldData.java:89)
            at com.elmakers.mine.bukkit.plugins.nether.NetherManager.loadWorlds(NetherManager.java:588)
            at com.elmakers.mine.bukkit.plugins.nether.NetherManager.initialize(NetherManager.java:550)
            at com.elmakers.mine.bukkit.plugins.nether.NetherGatePlugin.initialize(NetherGatePlugin.java:133)
            at com.elmakers.mine.bukkit.plugins.nether.NetherGatePlugin.onEnable(NetherGatePlugin.java:487)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    *EDIT: When i remove NetherGate, the error doesn't show up.
     
  18. Offline

    Pisi-Deff

    The NetherGate plugin is dead anyway. Developer has stopped as MC vanilla now has fully working nether in SMP. :)
     
  19. Offline

    Carlack

    After some tests, it appears that your plugin causes a bug in my server.
    We can't put blocs on 2x2x2 areas randomly found all over the map.
    Can't say if there is a conflict with another plugin but after any reinstalation of NoCivilSpawn, the 2x2x2 areas change of location.

    I hope that you will solve this bug because I really enjoy this plugin :'(
     
  20. Offline

    rhadiem

    Thanks for keeping an updated Bukkit version up in the description, saves us time wondering if all our mods are ready for a new update. Cheers. Great plugin.
     
  21. Offline

    Hitman4Hire

  22. Offline

    Sleaker

    This is not a bug with my plugin, there is nothing I can do with how bukkit handles spawn cancellations to change this happening. If it really bothers you (and it bothers me too) post issue requests on the bukkit issue tracker leaky.bukkit.org

    @Hitman4Hire apparently it didn't leave, not sure why bukkit is generating spawn events on worlds that don't exist. heh I'll see if it's fixed with these next few commits I put up.
     
  23. Offline

    EpicATrain

    That was you? I was trying to figure out where in the hell this bug was coming from. I thought I had corrupt chunks. XD Thanks for letting me know. :)
     
  24. Offline

    Hitman4Hire

    Worlds that don't exist? Me confused...
     
  25. Offline

    Sleaker

    Well let me put it this way, bukkit was creating creature spawn events for a world that hadn't been fully loaded yet. (If the world had loaded fully it would be triggering my plugin to load a configuration for it) which was causing it to try and lookup a configuration for a world that didn't exist yet 'in the system' - I don't know why bukkit loads in like this, but it does. Anyhow.
    @Hitman4Hire No more Giant list of Exceptions on load for you now? (hard to test as I wasn't getting any).
     
  26. Offline

    Hitman4Hire

    Right, I'm using Wormhole Xtreme worlds for my multiworld, and It's loading 3 worlds for some reason. Home, survival and world. It also generates a world folder in the root of my bukkit (deleting it results in regeneration) . My problem is, even though in the WHXtreme worlds config I have specifeied the world NOT to be loaded on startup. It loads anyway. I have also tried adding to XHXW world list then deleting it. Same result.
     
  27. Offline

    sintri

    Just curious, how big is the diamondblock override? Is it just a 21x21x5 range of the diamond block? Built a stadium for Mob Arena, and unsuprisingly, pretty sure some of the spawnpoints are prevented from spawning so alas want to do an override without allowing random creepers to pop where they're not suppose to.
     
  28. Offline

    trigger281

    I get the following error with NoCivilSpawns v1.4.6 and Bukkit build 818:

     
  29. Offline

    Sleaker

    it uses the same size as the monster spawner override (to keep performance), so 9x9x3. You would need a diamond block about every 19 blocks. but, I'd do like 15 to makes sure.
     
  30. Offline

    JDD

    Thanks for the fast update of these plugins Sleaker!
     
  31. Offline

    o0AzzA0o

    Would you consider making a global mob limit option for this plugin?
     

Share This Page