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

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

     
  1. Offline

    jordanneil23

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

    -
    [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

    This post has been edited 73 times. It was last edited by jordanneil23 Feb 3, 2013.
  2.  
  3. Offline

    Celtic Minstrel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Were you looking at my first version of the code (here and here) or the current version? I ask only because the first version was a lot more like the original code than the current version is; plus, I linked to the current version, so which version you saw would have depended on when you saw it.
  4. Offline

    Hybris95

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Changed my old SpawnMob plugin name into MakeEmSpawn ;) Best regards !
    jordanneil23 likes this.
  5. Offline

    Ben Allison

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

    Celtic Minstrel

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

    cppchriscpp

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

    Psycho Robot

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

    bryand

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

    xGhOsTkiLLeRx

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

    jordanneil23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Trying to fix it now :)
    EDIT
    Fixed it but it wont be released until build 561 is the promoted build :p
  12. Offline

    Knuckx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Could you add friendly human/monster spawning please (if they are still in minecraft)?
    Thanks.
  13. Offline

    PhotonLance

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    have lasted CB .... dosent work plugin (((
    skrin kin2.JPG
  14. Offline

    Celtic Minstrel

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

    cppchriscpp

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

    jordanneil23

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

    fefect

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

    Exxter

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

    jordanneil23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The recommended build is 556 not 544, try it. (http://bamboo.lukegb.com/job/dev-CraftBukkit/promotion/)
  20. Offline

    jordanneil23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That is not my fault it is a client error, ask Notch to fix it.
  21. Offline

    mjc506

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

    jordanneil23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ask Notch.
  23. Offline

    gamerluke

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

    gamerluke

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

    mjc506

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

    Exxter

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

    jordanneil23

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

    Celtic Minstrel

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

    mjc506

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

    Exxter

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanx very much, now there are no error! Thanx very very much! :)
  31. Offline

    kexus

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

    kexus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Could you make it so that you can use mob spawners to spawn giants?

Share This Page