[INACTIVE][ADMN] SpawnMob v1.4.1

Discussion in 'Inactive/Unsupported Plugins' started by xmlns, Jan 23, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    xmlns

    I used hey0's /spawnmob command a lot, and I haven't found /spawnmob for bukkit, so I created my own. This plugin uses nijikokun's Permissions plugin if you have it; otherwise, it uses ops.txt. Most plugins are built with bukkit.jar in the path, but SpawnMob is built with craftbukkit.jar so that it can call functions not in the API. Thanks to NathanWolf for saying to use world.a(e) because I was unable to get this to work until I saw his post. (This doesn't let me upload jarfiles so I put the plugin in a zip.) Source

    /spawnmob <mob name>[:<slime size> || ;<mob that is riding>] [amount of mobs]
    This syntax is probably confusing, so I'll give some examples:
    - /spawnmob Chicken;Giant 5 will spawn a giant riding a chicken
    - /spawnmob Slime:5 will spawn five huge slimes
    NOTE: Right now, you can't spawn slimes riding other mobs or vice versa.

    /mspawn <mob name>
    while looking at a mob spawner.

    Mob List:
    -Chicken
    -Cow
    -Creeper
    -Ghast
    -Giant (not in /mspawn)
    -Pig
    -PigZombie
    -Sheep
    -Skeleton
    -Slime (not in /mspawn)
    -Spider
    -Squid
    -Zombie

    Permissions:
    - spawnmob.spawnmob.<mob type || mob category (friendly || neutral || enemy)>
    - spawnmob.mspawn.<mob type>
    Examples:
    - spawnmob.spawnmob.neutral
    - spawnmob.mspawn.pig
    -spawnmob.mspawn.squid
    NOTE: Permissions is case-sensitive, so you have to type 'spawnmob.spawnmob.pig' and not 'spawnmob.spawnmob.Pig' or 'SpawnMob.spawnmob.pig'.

    Goals:
    Allow slimes to ride and be ridden.
    Allow the spawning of mobs riding other mobs.
    Allow the changing of mob spawner types.

    Now 1.4.1!
    -Attempted to fix a bug involving Permissions.
    -Fixed Giant spawning.

    1.4.0:
    -Mobs spawn at the pointer.

    1.3.3:
    -Updated to the newest version of Permissions. You have to update too.

    1.3.2:
    -Just another fix for a bug caused by my carelessness. The bug was that I didn't catch a NoClassDefFoundException when Permissions wasn't found.

    1.3.1:
    -I realized that I had never called the setupPermissions() method, causing the plugin to use ops.txt instead. Fixed.

    1.3.0:
    -Fixed PigZombie spawning.
    -Added the ability to spawn mobs riding other mobs.

    1.2.0:
    -Added /mspawn using toimelin's TargetBlock.java.
    -Changed Permissions.

    1.1.0:
    -Added variable slime sizes with "/spawnmob Slime:size" (any integer greater than one works)
    -Instead of saying "2 Pig(s) spawned." and "2 Sheep(s) spawned." it says "2 pigs spawned." and "2 sheep spawned."
    -Permissions are more customizable, i.e. "spawnmob.squid" or "spawnmob.neutral"

    Known bugs:
    -Slime size rendering
    -A mob spawner will continue to spawn pigs after its type is changed. The pigs will be invincible and will disappear on a chunk reload. This is similar to the mob spawner behavior on a server with animals off.


    New Project Link:

    http://forums.bukkit.org/threads/admn-fun-spawnmob-v1-8-support-for-ops-txt-531.6010/
     

    Attached Files:

    Nick Foster and MationMac like this.
  2. Offline

    Galrath

    As I've already said: I'm on CB#289.
    I've removed and redownloaded every plugin today as I was going from #135 to #289, so I thought it would be best to redownload everything, even if it hasn't been updated.

    Functions I've tested: /mspawn - I can change spawners without problems and yes, I've waited for the changed mob to spawn
    /spawnmob - Works flawlessly, too. Single mobs, multiple mobs, mobs riding other mobs. Of course Essentials could be the reason why that command works, but I believe you can't spawn mobs riding other mobs with it?

    Plugins I'm using:
    AntiBreak
    Anti-Build
    Arrow Turrets
    Backup Plugin
    Creativ
    Elevators
    Essentials (including Home, Spawn, Warp)(switched from General, MyHome, MyWarp)
    Extend Day
    Fly Ridge Fly
    Hidden Door
    iStick
    Measuring Tape
    Minecart Mania (Core, Chests, Signs, Stations)
    Permissions
    Spawn Mob (obviously)
    WorldEdit

    After I've started the server I went to check my zoo, which is full of mob spawners, spawning every available mob (no Slimes or Giants, as they can't be spawned via spawner) and was surprised that they were still working, as I've kept an eye on this thread, so I've tried to change spawning mobs in the spawners, which worked, I then went on to spawn mobs (single, multiple, riding), which all worked, too.
    I don't know why it's working, but it is for me...
    I've checked the server window, too, I'm definitely on CB#289 and Spawn Mob initializes without problems.

    I will test it ASAP without Essentials running, as chibirubara suggested and will report back.

    EDIT: chibirubara is right. /spawnmob isn't working anymore after removing Essentials, but /mspawn is still working.
    Sorry for all the confusion [​IMG]
     
  3. Offline

    Steveice10

    It would be awesome if you added the human mob (Monster) to this.
     
  4. Offline

    arunser

    Here are my two cents, first off and the biggest reason I don't like this is because it uses Permissions. I really don't like that plug-in at all it is too confusing and unreliable, that being said could you please make a version where you don't need to have Permissions installed. Besides this I really want this plug-in back, just without needing Permissions. Thank you very much.
     
  5. Offline

    TheMap

    I can get the mob.spawn to work but I cant get the spawners to change. Here is admin permission.

    Code:
           permissions:
                - 'worldedit.reload.*'
                - 'cleaner.*'
                - 'monsterhunt.*'
                - 'essentials.*'
                - 'jail.modifyjail'
                - 'jail.command.*'
                - 'spawnmob.spawnmob.*'
                - 'spawnmob.mspawn.*'
    --- merged: Feb 12, 2011 1:57 AM ---
    Permissions is quite simple once you understand the gist, I just think that some of the plugin developers don't know how to utilize it properly.
     
  6. Offline

    Ultra695

    Cannot use /spawnmob

    I try /spawnmob creeper 1 and on the console it gives.

    SEVERE: Could not pass event PLAYER_COMMAND to Spawnmob
    java.lang.NoSuchMethodError: org.bukkit.Server.getworlds<>[lorg/bukkit/world:
    and a bunch of lines concerning java, mainly "at net.minecraft.server. (stuff)"

    Please help, /mspawn works perfectly, (Until the creeper spawner you switch it to blows itself up :D)
     
  7. Offline

    Kaikz

    I get this too.

    Code:
    eb 12, 2011 7:50:29 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to SpawnMob
    java.lang.NullPointerException
            at org.bukkit.xmlns.spawnmob.SMPlayerListener.onPlayerCommand(SMPlayerListener.java:56)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:144)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:214)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:616)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:589)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-02-12 07:50:29 [INFO] Kaikz issued server command: spawnmob Slime 1
     
  8. Offline

    Vexxx7

    Same here:

    Code:
    Feb 12, 2011 9:03:52 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to SpawnMob
    java.lang.NoSuchMethodError: org.bukkit.Server.getWorlds()[Lorg/bukkit/World;
            at org.bukkit.xmlns.spawnmob.SMPlayerListener.onPlayerCommand(SMPlayerListener.java:57)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:144)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:214)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:602)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:575)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-02-12 09:03:52 [INFO] Vexxx7 tried command: spawnmob creeper 1
     
  9. Lol i got wierd stuff... but mine conflicted with VoidMage
     
  10. Offline

    fullwall

    This needs to be updated for the new multiworld options... I'd guess that right now this uses server.getWorlds()[0], but getWorlds() no longer returns an array (it's a list now), causing the error.
     
  11. Offline

    Iaconic

    AWSOME plugin ty so much this is very helpful for my server. ill credit u accordingly when i build the plugin thank you area!!!
     
  12. Offline

    TreePuncher

    This plugin works perfect!

    but, I think i need some advice If i can get any. I'm building an arena which where I want zombies to come out of double doors and fight the player(s) who are in the arena.

    I have an arena built with a switch attached to a few double doors that should flood out the monsters.

    Here is the video I'm pretty much trying to copy: http://www.youtube.com/watch?v=vbb1DU1AWRg

    [​IMG]

    The problem I'm having is the zombies get stuck at the door, I'm not sure why. They just stand in the door way and look at me. About 1 out of every 3 monsters will make it thru the door and chase me around the arena.

    If anyone who has experience with controlling mobs I would love your advice. Please reply or PM me and I could send you my server IP if you want to check it out.

    I will update this post with images when I get out of work.
     
  13. Offline

    Dominic

    Hey guys! I'm sorry to bother but after I updated the server and then updated Mob Spawners I keep getting this error everytime I try to spawn anything

    Code:
    SEVERE: Couldt not pass event PLAYER_COMMAND to SpawnMob java.lang.NoSuchMethordError: ......
    
     
  14. Offline

    Jobsti

    @xmlns

    Are you there? ;)
    Any update/Fixing-plans for CB above #300?
     
  15. Offline

    jordanneil23

    I have a very buggy fixed version of this, and I will upload it here if someone wants it, and if xmlns wont care. :)
     
  16. Offline

    riuthamus

    so need this plugin updated!!!
     
  17. Offline

    Justin511

    This breaks WorldEdit completely. Otherwise nice job. Maybe add an undo button or /kill ?
     
  18. Offline

    Wayne Cheng

    Downloaded and tested 1.4.1, it's working fine on CB#328 w/ Essentials and Minecart Mania for me.
     
  19. Offline

    Daveyo

    pretty big addon. Although i really want to applaud someone stepping in to try and fix some of these awesome yet abandon addons. Keep up the good work.
     
  20. Offline

    DigidragonZX

    Cant get it working, exept on build 2** but on 328 it just wont,, always get unkown comand and somthing about severe: Could not pass event PLAYER_COMMAND to Spawnmob.... what to do.. are there pluggins that interfeer?
     
  21. Offline

    xmlns

    Anyone who wants to develop this plugin, post here. I will give you commit rights and (if possible) thread moderation rights.
     
  22. Offline

    jordanneil23

    You're not going to continue developing this...

    Crap, but thanks for such a nice plugin. :)

    EDIT
    I would like to develop the plugin more :D
     
  23. Offline

    LlmDl

    I really hope someone picks this up, it's critical for any dungeon/quest making!
     
  24. Offline

    jordanneil23

    Version 1.5.7
    This will no longer be watched!
    Nor will the links be updated
    Download - Zip, with source.​
    Download - Just the Jar​
    Version 1.5.7 saves this plugin from not working!​
    Update your version to 1.5.7 now!​
    (Reason)​

    Code:
    Changelog
    
    V1.5.7
    really did fix the "Stupidly Long Plugin Constructor" error on startup
    Updated to support permissions 2.1
    This fixed the loading problem with the current CraftBukkit build
    
    V1.5.6
    Added a new feature! (Right click a mob spawner :D )
    Fixed the "Stupidly Long Plugin Constructor" error on startup
    ^ NOT REALLY IT IS FIXED IN 1.5.7! ^
    
    V1.5.5
    Built on Bukkit #172 tested on CraftBukkit #353. Should work for later versions.
    Fixed the WHOLE plugin from exploding.
    Thanks to cjc343 for linking me the post that stated that MobType is changing to CreatureType and so on.
    Also added some shortcuts to the plugin (/smob, /sm)
    
    V1.5.4
    /mspawn delay -10 to 10 - Adds the ability to make mobspawners spawn mobs faster
     (-10 being the fastest, 10 being the slowest)
    Removed /spawnmob kill players - It was way to buggy and pointless, really
    Added /spawnmob undo - Kills all mobs
    The code is now even messier (if that's a word :P)
    
    V1.5.3
    Added the ability to kill players through /spawnmob kill players Removed in 1.5.4
    Changed the messages you get when not allowed to use one of the commands
    
    V1.5.2
    Added /spawnmob kill <all-animals-monsters> - Kills the mobs!
    Added /mspawn delay <Number Between 1-20>- SHOULD make the mob spawners spawn mobs slower
    Permissions node for /mspawn delay - spawnmob.mspawn.delay
    /mspawn check now shows the delay a spawner is set to
    The code is very messy, but who cares
    
    V1.5.1
    
    Added the ability to spawn "Monsters"
    Actually fixed the /mspawn bug this time
    Added /mspawn check - Checks what a mob spawner is set to spawn
    
    V1.5
    
    First attempt at fixing the /mspawn bug
    Permissions -​
    /spawnmob kill - spawnmob.kill​
    /mspawn delay - spawnmob.mspawn.delay​
    /mspawn check - spawnmob.mspawn.check​
    If you want a group to use /mspawn on all mobs but not to use /mspawn <command> do this: spawnmob.mspawn.allmobs​
    Instead of spawnmob.mspawn.* (Since this would let them spawn all mobs and use all /mspawn commands)​
     
    Verrier likes this.
  25. Offline

    ledhead900

    so can I set a mob spawner to keep spawning at an interval with this ?
     
  26. Offline

    Jobsti

  27. Offline

    Flo_White

    is it possible to delete them manually if you spawned too much and you can't kill them? :S
     
  28. Offline

    jordanneil23

    New version more stuff!

    Go look!

    I would also like to ask if I can continue development of this plugin please. :)
     
  29. Offline

    Jobsti

    Good work mr. T ;)
     
  30. Offline

    jordanneil23

    :D Glad someone enjoys it.
    --- merged: Feb 19, 2011 7:08 AM ---
    Well /spawnmob kill is pretty much what you wanted :)
     
  31. Offline

    Mikevp88

    What exactly do I put in the Premissions? I wan't to spawn every mob but the Console keeps telling me I can't use the Command. Can somebody help me?

    Thanks
     
Thread Status:
Not open for further replies.

Share This Page