Inactive [ADMN/FUN] SpawnMob - Advanced mob spawning.[1.2.5 and up]

Discussion in 'Inactive/Unsupported Plugins' started by jordanneil23, Feb 25, 2011.

  1. Offline

    jordanneil23

    [​IMG]
    MOVED TO BUKKIT DEV!
    ------------------------------------------------------------------------------------------------------
    THIS IS NO LONGER WATCHED, IT WILL BE RARE TO GET A REPLY FROM ME ON THIS POST GO TO THE BUKKIT DEV PAGE TO GET HELP
    ------------------------------------------------------------------------------------------------------
    This is a continuation of SpawnMob which was originally made/developed by xmlns.​
    ------------------------------------------------------------------------------------------------------
    Downloads
    Zip

    -​
    [​IMG]
    -​
    ------------------------------------------------------------------------------------------------------
    Twitter/Donations
    -
    [​IMG]
    -
    Follow SpawnMob on twitter for details on when updates will be released.
    -
    I'm not asking for a donation but if you like the plugin and feel generous click the donate button :)
    [​IMG]
    ------------------------------------------------------------------------------------------------------
    Commands and Features

    On the Wiki
    ------------------------------------------------------------------------------------------------------


    Mob List
    On the Wiki
    ------------------------------------------------------------------------------------------------------

    Mob Kits
    On the Wiki
    ------------------------------------------------------------------------------------------------------
    Permissions
    On the Wiki
    ------------------------------------------------------------------------------------------------------
    Known Bug(s)
    On the Wiki
     
  2. Changed my old SpawnMob plugin name into MakeEmSpawn ;) Best regards !
     
    jordanneil23 likes this.
  3. Offline

    Ben Allison

    When I place down a mob spawner and type /mspawn Cow It will spawn cows but will also still spawn pigs. How can I fix this. I am using Craftbukkit 556
     
  4. Offline

    Celtic Minstrel

    That's a client-side bug: any spawner placed on grass will spawn invincible pigs that disappear when you log out. There's nothing that can be done about it.
     
    jordanneil23 likes this.
  5. Offline

    cppchriscpp

    Hello,

    I've been using this plugin for a while, and as of the most recent version (1.8.1) my users have been complaining of being unable to use the /mspawn command correctly. I have permissions set up for default users correctly, and everything else. It only works correctly for my administrators, who have been given the wildcard permission for everything. ('*') Normally I'd give more details, but I think I've found the problem, so I will just point to that instead.

    In your commandhandler.java file, on line 325, you check for the user's permissions. However, the way you have structured this if statement, the user needs multiple permissions; the permission for mobspawn.mspawn.allmobs AND mobspawn.mspawn.whatevertypeyouwanttospawn AND the permission for spawnmob.mobtype. I get this feeling that this is not what you were going for.

    Here is the code in question:

    Code:
    if (!SpawnMob.Permissions.has(p, "spawnmob.mspawn." + mt.name().toLowerCase()) || !SpawnMob.Permissions.has(p, "spawnmob.mspawn.allmobs") || !SpawnMob.Permissions.has(p, "spawnmob." + mob.type.type)) {
                        p.sendMessage("You are not authorized to do that.");
                        return false;
                    }
    
    Thanks for a wonderful plugin; I'd been missing this from the hey0 days. I hope I've identified the issue correctly and this helps you in solving this; if not, let me know. I'll be glad to provide more information.
     
  6. Offline

    Psycho Robot

    I encountered an error which crashed the server. I did /spawmob chicken then teleported a player to my location. That's when the server froze up and I got this error message:

    Code:
    17:10:28 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'spaw
    nmob' in plugin SpawnMob v1.8.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80
    )
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    29)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
            at com.jordanneil23.SpawnMob.CommandHandler.perform(CommandHandler.java:
    88)
            at com.jordanneil23.SpawnMob.SpawnMob.onCommand(SpawnMob.java:116)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    Any idea what's wrong?
     
  7. Offline

    bryand

    i see not much difference between setting the delay to -10 , 0, or 10. im guessing -10 is supposed to make them spawn fast right?
     
  8. Offline

    xGhOsTkiLLeRx

    Just in cause you don't know, your plugin doesn't work with cb#560+
    Maybe you can make a fix, so if a new recommend build is released your is already working with the new version.
     
  9. Offline

    jordanneil23

    Trying to fix it now :)
    EDIT
    Fixed it but it wont be released until build 561 is the promoted build :p
     
  10. Offline

    Knuckx

    Could you add friendly human/monster spawning please (if they are still in minecraft)?
    Thanks.
     
  11. Offline

    PhotonLance

    have lasted CB .... dosent work plugin (((
    skrin kin2.JPG
     
  12. Offline

    Celtic Minstrel

    Wait, I thought it was already there? Or wait, do you mean ones that don't attack you?

    I tried spawning a Human once (which isn't the same as a Monster, though I guess it'd look the same). The game crashed due to thinking (wrongly) that it was a player.
     
  13. Offline

    cppchriscpp

    The author has explained this already. He is not going to release an updated version until a new recommended build comes out. That means you're stuck on 556 for now, or it's not going to work.

    @jordanneil23 Did my fix get in there too? I want to stop having to change spawners for my users. :p

    Sorry if I'm being a tad of a pest on this.
     
  14. Offline

    jordanneil23



    http://bamboo.lukegb.com/job/dev-CraftBukkit/promotion/
    I forgot about that one :p
    Fixed it now but as I said:
     
  15. Offline

    fefect

    Mm
    The slimes have a problem ,
    when i spawn one and kill it
    it will split up (like normal)
    But thos have like godmode ,
    so i cant hit them or do damage to them
    can you fix that please?
     
  16. Offline

    Exxter

    Hi there,

    i try to install craftbukkit 544 (recommened version from bukkit.org) with this nice plugin (and a second plugin wormhole) and i get this error:

    Code:
    12:44:45 [INFO] [SpawnMob] Version 1.8 disabled.
    12:44:45 [SCHWERWIEGEND] Plugin attempted to register BLOCK_RIGHTCLICKED while not enabled loading SpawnMob v1.8 (Is it up to date?)
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register BLOCK_RIGHTCLICKED while not enabled
            at org.bukkit.plugin.SimplePluginManager.registerEvent(SimplePluginManager.java:273)
            at com.jordanneil23.SpawnMob.SpawnMob.registerEvents(SpawnMob.java:121)
            at com.jordanneil23.SpawnMob.SpawnMob.onEnable(SpawnMob.java:63)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    12:44:45 [INFO] Done (0,168s)! For help, type "help" or "?"
    14:28:33 [INFO] 143 recipes
    System is Debian Lenny 32bit, java is version jre1.6.0_24. Any ideas whats wrong?
     
  17. Offline

    jordanneil23

    The recommended build is 556 not 544, try it. (http://bamboo.lukegb.com/job/dev-CraftBukkit/promotion/)

    That is not my fault it is a client error, ask Notch to fix it.

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

    mjc506

    Is there a technical reason why
    Code:
    /mspawn Monster
    isn't allowed, or is it just not implemented yet? I'd like to create a town of hostile 'people' :p
     
  19. Offline

    jordanneil23

    Ask Notch.
     
  20. Offline

    gamerluke

    Code:
    [SpawnMob] Permission system not detected, plugin disabled
    2011-03-27 08:22:28 [INFO] [SpawnMob] Version 1.8.1 disabled.
    2011-03-27 08:22:28 [SEVERE] Plugin attempted to register BLOCK_RIGHTCLICKED while not enabled loading SpawnMob v1.8.1 (Is it up to date?)
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register BLOCK_RIGHTCLICKED while not enabled
        at org.bukkit.plugin.SimplePluginManager.registerEvent(SimplePluginManager.java:273)
        at com.jordanneil23.SpawnMob.SpawnMob.registerEvents(SpawnMob.java:124)
        at com.jordanneil23.SpawnMob.SpawnMob.onEnable(SpawnMob.java:63)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Hmm?... Found this error;
    Craft Bukkit - Up to Date
    SpawnMob - Just changed from the "old broken spawnmob" to your new version

    Sorry :)
    ... Made a mistake, if anyone else gets this error you:
    Aren't using permissions + need to change the properties inside /plugins/spawnmob...

    Code:
    #Sun Mar 27 08:22:28 BST 2011
    mobspawners-have-drops=true
    use-permissions=false
    
    Stupid me...

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

    mjc506

    Ah, fair doos. I just wondered if it was an artificial limitation imposed by the plugin.

    Sorry, that sounds a bit harsh, I didn't mean it to be!

    Just fyi, I've found a mobspawner that does spawn humans/monsters (amongst others here: http://www.minecraftforum.net/viewtopic.php?f=25&t=69552 ). I tried importing it with Worldedit but it just spawned pigs (I imagine worldedit sees 'mobspawner' and then sets it to '[mob]') but importing it with mcedit worked great. When rightclicking those spawners, your plugin displays the mob type appears as 'null'. Is there any more debug info I can grab for you?
     
  22. Offline

    Exxter

    OK, now i'm running 556:

    Code:
    12:17:50 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-g6c6c30a-b556jnks (MC: 1.3)
    12:17:50 [INFO] Preparing level "world"
    12:17:50 [INFO] Preparing start region
    12:17:51 [INFO] Preparing spawn area: 93%
    12:17:51 [INFO] [WormholeXTreme][v0.812][By Lologarithm & alron]Load Beginning.
    12:17:51 [INFO] [WormholeXTreme]0 Wormholes loaded from WormholeDB.
    12:17:51 [INFO] [WormholeXTreme][v0.812]Load Completed.
    12:17:51 [INFO] [WormholeXTreme][v0.812]Enable Beginning.
    12:17:51 [WARNUNG] [WormholeXTreme]Permission Plugin not yet available. Defaulting to built-in permissions until Permissions is loaded.
    12:17:51 [WARNUNG] [WormholeXTreme]iConomy Plugin not yet available - there will be no iConomy integration until loaded.
    12:17:51 [WARNUNG] [WormholeXTreme]Help Plugin not yet available - there will be no Help integration until loaded.
    12:17:52 [INFO] [WormholeXTreme][v0.812]Enable Completed.
    12:17:52 [INFO] [SpawnMob] Permission system not detected, plugin disabled
    12:17:52 [INFO] [SpawnMob] Version 1.8 disabled.
    12:17:52 [SCHWERWIEGEND] Plugin attempted to register BLOCK_RIGHTCLICKED while not enabled loading SpawnMob v1.8 (Is it up to date?)
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register BLOCK_RIGHTCLICKED while not enabled
            at org.bukkit.plugin.SimplePluginManager.registerEvent(SimplePluginManager.java:273)
            at com.jordanneil23.SpawnMob.SpawnMob.registerEvents(SpawnMob.java:121)
            at com.jordanneil23.SpawnMob.SpawnMob.onEnable(SpawnMob.java:63)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    12:17:52 [INFO] Done (0,170s)! For help, type "help" or "?"
    The second plugin ist WormholeXTreme-0.812.jar. but errors anyway. Any Ideas?
     
  23. Offline

    jordanneil23

    I have found that it does this when someone is using it with use-permissions set to true and they do not have the permissions jar.
    That is a mod.
     
  24. Offline

    Celtic Minstrel

    Actually, it sounds like it isn't. Especially since mjc506 said that the human mob spawner was successfully imported into a world. Seems like it's just an MCEdit schematic describing a spawner that spawns humans.
     
  25. Offline

    mjc506

    Yup, exactly that. I was just wondering if you wanted to get human mobspawners working, and if that was a way of helping out. But yeah, I should have mentioned it was a .schematic, sorry.
     
  26. Offline

    Exxter

    Thanx very much, now there are no error! Thanx very very much! :)
     
  27. Offline

    kexus

    Whenever I try to right click on a mob spawner, nothing happens, and I get this error:
    Code:
    11:31:49 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to SpawnMob
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
            at com.jordanneil23.SpawnMob.SpawnerListener.onBlockRightClick(SpawnerLi
    stener.java:29)
            at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.j
    ava:259)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:493)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHa
    ndler
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:30)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 12 more
    >
    I get this even when I have no other plugins, and use-pemissions is set to false.

    Could you make it so that you can use mob spawners to spawn giants?

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

    NoodleFarmer

    everything works except for when I try and change what the mob spawner produce's. I type /mspawn zombie and it says I am not authorized.

    I have all these permissions
    - 'spawnmob.mspawn.<mob type>'
    - 'spawnmob.spawnmob.<mob type || mob category (friendly || neutral || enemy)>'
    - 'spawnmob.kill'
    - 'spawnmob.mspawn'
    - 'spawnmob.mspawn.delay'
    - 'spawnmob.mspawn.check'
    - 'spawnmob.spawnmob.allmobs'

    Sorry, posted to early. whats the permission I need to change what spawns from the spawner ?

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

    Celtic Minstrel

    Please tell me that's not exactly what's in your config file.
     
    jordanneil23 likes this.
  30. Could someone paste the config text here, it won't appear on my server.
     
  31. Offline

    Fizzee

    Just to be safe I went all out but still I get "You are not authorised" for /mspawn mob
    Here's my permissions:

    Code:
                - 'spawnmob.spawnmob.friendly'
                - 'spawnmob.spawnmob.neutral'
                - 'spawnmob.spawnmob.enemy'
                - 'spawnmob.kill'
                - 'spawnmob.mspawn'
                - 'spawnmob.mspawn.delay'
                - 'spawnmob.mspawn.check'
                - 'spawnmob.mspawn.allmobs'
                - 'spawnmob.mspawn.chicken'
                - 'spawnmob.mspawn.cow'
                - 'spawnmob.mspawn.creeper'
                - 'spawnmob.mspawn.ghast'
                - 'spawnmob.mspawn.pig'
                - 'spawnmob.mspawn.pigzombie'
                - 'spawnmob.mspawn.sheep'
                - 'spawnmob.mspawn.skeleton'
                - 'spawnmob.mspawn.slime'
                - 'spawnmob.mspawn.spider'
                - 'spawnmob.mspawn.squid'
                - 'spawnmob.mspawn.zombie'
                - 'spawnmob.spawnmob.allmobs'
                - 'spawnmob.spawnmob.chicken'
                - 'spawnmob.spawnmob.cow'
                - 'spawnmob.spawnmob.creeper'
                - 'spawnmob.spawnmob.ghast'
                - 'spawnmob.spawnmob.giant'
                - 'spawnmob.spawnmob.monster'
                - 'spawnmob.spawnmob.pig'
                - 'spawnmob.spawnmob.pigzombie'
                - 'spawnmob.spawnmob.sheep'
                - 'spawnmob.spawnmob.skeleton'
                - 'spawnmob.spawnmob.slime'
                - 'spawnmob.spawnmob.spider'
                - 'spawnmob.spawnmob.squid'
                - 'spawnmob.spawnmob.zombie'
    What can I a) loose, and b) add to get it to work?
     

Share This Page