[INACTIVE][FIX/MISC] creaturebox v 0.7.3 - Wolves and Monsters and Critters, Oh My! [684]

Discussion in 'Inactive/Unsupported Plugins' started by Lodran, Mar 2, 2011.

  1. Offline

    Lodran

    creaturebox
    Make creature spawners tradable
    Now with Wolves, Monsters, Slimes and Giants!

    Download version 0.7.3 for CraftBukkit 602, 617, 670, 684
    Downloads for old (unsupported) versions (open)

    • Have you ever thought "I'd love to be able to dig this dungeon out, and move it somewhere more useful."?
    • Have you ever thought "I'd really like to be able to /give myself a spawner, and make it produce something other than pigs."?
    • Have you ever thought "I'd really like to be able to turn this spawner on and off with a switch?"
    If you answered "yes" to any of these, then creaturebox is the plugin for you.


    creaturebox fixes several issues with creature spawners, so that they can be altered, and traded between players.

    Features:
    • When a creature spawner is broken, it is dropped as an item.
    • When a creature spawner is placed, it retains its original creature type.
    • The creature type which is created by a creature spawner can be changed using the /creaturebox set command. To alter a mob spawner, look directly at it (through glass is fine), then type /creaturebox set {creaturename}, where {creaturename} is the name of a creature. Valid creature names are: pig, chicken, cow, sheep, squid, creeper, ghast, pig_zombie, skeleton, spider, zombie, slime, monster, giant and wolf.
    • The frequency at which a creature spawner generates creatures can be changed using the /creaturebox period {period} command, where {period} is the number of seconds between spawns. A period of -1 gives a random period between 10 and 20 seconds. A period of zero puts the creature spawner into "pulsed redstone" mode, where creatures are generated only when the redstone power of the spawner switches from high to low.
    • The number of creatures generated at a time can be changed using the /creaturebox count {count} command, where {count} is the number of creatures to generate. A count of -1 generates a random number of creatures (from 1 to 4), while a count of 0 disables the spawner.
    • The maximum number of live mobs that a spawner will maintain can be changed using the /creaturebox limit {limit} command, where {limit} is the desired maximum. A limit of -1 sets the default, which is 10 for a managed spawner, and unknown for a natural spawner.
    • The requirements for spawning a creature can be adjusted using the /creaturebox requires {requirements} command, where {requirements} is a space separated list any number of:
      • player - require a player to be within 20 blocks of the spawner.
      • surface - require grass for critters.
      • light - require light for critters, dark for monsters.
    • A creature spawner's settings can be displayed using the /creaturebox info command.
    • A creature spawner can be given to a player using the /creaturebox give {player} {creaturename} {count} command.
    • Supports the Permissions API. If Permissions (or GroupManager/FakePermissions) is not available, uses the player's Op status to determine its behavior.
    • A creature spawner can be turned off by powering it with redstone. Note: this will not affect the spawning of invincible "Ghost pigs".
    Permissions:
    • creaturebox.set - Allows use of the /creaturebox set command.
    • creaturebox.give - Allows use of the /creaturebox give command.
    • creaturebox.creature.{creaturename} - Allows the player to set or give {creaturename} spawners, where {creaturename} is a valid creature name (pig, cow, etc...).
    • creaturebox.period - Allows use of the /creaturebox period command.
    • creaturebox.count - Allows use of the /creaturebox count command.
    • creaturebox.limit - Allows use of the /creaturebox limit command.
    • creaturebox.requires - Allows use of the /creaturebox requires command.
    • creaturebox.dropspawner - When a creature spawner is broken, it is dropped as an item.
    • creaturebox.placespawner - When a creature spawner is placed, it retains its original creature type.
    Configuration:
    • creaturebox now creates a config.yml file in .../Plugins/creaturebox.
    • debugPriority: {integer range 0-3, default 2} - Sets the "noise level" for debugging messages - lower numbers = less noise. In general, you can ignore this because you have to set yourself as a debugger to see debugging messages.
    • messagePriority: {integer range 0-3, default 3 } - Sets the "noise level" for messages which are displayed when a player types a command.
    • enableRedstone: {boolean, default true} - Enables or disables redstone control of creature spawners.
    • operatorPermissions: {boolean, default true} - Enables separate operator permissions. If set to false, players are given the same permissions as operators. This setting will do nothing if a permissions plugin is installed.
    Notes:
    • creaturebox runs spawners in two different modes. "Natural" mode, where the spawner is run entirely by minecraft (and thus won't stop working, or change behavior when the map is loaded on a vanilla server), and "Managed" mode, where the spawner is run entirely by creaturebox. A spawner is switched to managed mode if any of its settings are changed from default. Squid, Slime, Monster and Giant spawners are always run in managed mode.
    • It is now possible to defeat the invincible "Ghost Pigs". Change the grass in a 9x9 area under the spawner to something else (green wool would work nicely) which would stop pigs from spawning entirely. Then, look at the spawner, and type /creaturebox requires player light to allow the pigs to spawn on the wool.
    Credits:
    Latest Revisions:

    Version 0.7.3
    • Added creaturebox.period, creaturebox.count, creaturebox.limit and creaturebox.requires permissions.
    • The source code for creaturebox is now included within the .jar.
    Revision History (open)
    Version 0.7.2
    • Managed spawner settings for multiple worlds (spawners.yml) are now loaded correctly.
    • A new configuration setting (operatorPermissions:) has been added to config.yml.
    Version 0.7.1
    • spawners.yml is now written whenever a spawner is modified.
    • Added exception handling to the code that reads spawners.yml.
    • Spawners are now removed from the managed spawners list when their block is broken (or otherwise changed).
    • Added (experimental) code to stop spawners from being run if their chunk is unloaded. This code needs more testing, as it appears that checking to see if a chunk is unloaded may be causing it to load.
    Version 0.7.0
    • Enabled all of my "experimental" features.
    • The frequency at which mobs are generated can be changed (see /creaturebox period).
    • Spawners can now be "pulsed" with redstone, to generate 1 or more mobs each time a button is pressed (see /creaturebox period).
    • The number of mobs generated each time can be changed (see /creaturebox count).
    • The total number of mobs that a spawner will create at a time can be changed (see /creaturebox limit).
    • Some of the requirements for spawning a mob can be relaxed (see /creaturebox requires).
    Version 0.6.3
    • Fixed default permissions for wolf spawners.
    • Fixed spawning for squid spawners.
    Version 0.6.2
    • Worked around a bug in bukkit which was causing all spawners to be placed as pig spawners.
    • Added support for wolf spawners.
    • Enabled experimental code which improves the spawning requirements for sqiud spawners (Note: to activate this code you have to use the /creaturebox set squid command on the spawner. Existing spawners and those placed from inventory still use the old code).
    Version 0.6.1
    • Updated to support CraftBukkit build 602. Note: creaturebox is not compatible with CraftBukkit build 600.
    Version 0.6.0
    • Rewrote the plugin from scratch, to make way for new features.
    • Replaced right-click selection of mob spawners with "where I'm looking" selection.
    • Added /creaturebox info command, which tells the player a creature spawner's settings.
    Version 0.5.1
    • Added /creaturebox access command, which tells the player what access they have.
    • Updated to support craftbukkit 522/bukkit 450
    • Removed the Slime creature type - slime spawners don't work as is.
    Version 0.5
    • Added the ability to turn spawners on and off with redstone.
    Version 0.4
    • Altered creaturebox.attachPermissions in an attempt to gain compatibility with Permissions version 2.1.
    Version 0.3
    • pig_zombie spawners now break correctly.
    Version 0.2
    • Changed /creaturebox {creaturename} command to /creaturebox set {creaturename}.
    • Changed creaturebox.changespawner permission to creaturebox.set.
    • Added /creaturebox give {player} {creaturename} {count} command.
    • Added per-creature permissions.
    Version 0.1
    • First Release
    To Do:
    • Adjust event priorities (Destroying a spawner in a protected area copies the spawner).
    • Looking for suggestions
    Features I'm considering:
    • Mobs riding mobs.
    • Per-server or per-world spawn limits.
    • Angry Wolves.
    • Rainbow sheep.
    Things I can't do anything about:
    • As of MineCraft 1.4, Spawners don't show damage when they're in your inventory. Sorry, Notch "Fixed" this.
    • As of MineCraft 1.4, if you pick up a pig spawner, and follow it up by picking up a wolf spawner, you'll end up with two pig spawners. This is caused by the above "damage" fix, and until bukkit adds inventory hooks, nothing can be done about it.
     
    cybercrash and PedoHascookies like this.
  2. Offline

    pyrojoe

    Lodran, your redstone update broke redstone usage.. I'm not sure exactly what's causing it (how to replicate the issue, or the logic behind what's causing it to break), however if you mess with some simple circuits involving pressure plates and a few redstone torches while your plugin is on in a server you'll find that some of the torches stop working properly and get forever powered off. Could you possibly add a link on the top of the page to your version 0.4 till you fix the issue?

    Also thanks for this plugin, its great =D
     
  3. Offline

    Lodran

    The only thing my plugin does with redstone is read its state, using isBlockPowered(), and then only if the block it's looking at is a spawner.

    I'm pretty sure it's impossible for the code to be affecting torches (I'm also not able to reproduce your problem).

    I have, however seen a problem with timers that involve diode/repeaters stopping when the chunk they're in being unloaded/reloaded. Are you sure this isn't the problem you're encountering?
     
  4. Offline

    pyrojoe

    Sorry you're right, I honestly didn't think it was possible for your plugin to break redstone either, but it seemed that way at first.. It might have just been working cause I restarted the server.. As far as I know, single player wise, only the new repeater blocks break when you unload/load the chunk, but that torches 'fix' themselves and start working after a short period of time.. I guess mp redstone is still kinda broken.
     
  5. Offline

    Edras

    possible to add a limit amount of creature spawn per box ?
     
  6. Offline

    Celtic Minstrel

    Oh hey, the give/place part of this is exactly one of the things I have wanted.
     
  7. Offline

    Em0srawk

    Will this work with build 493?
     
  8. Offline

    Lodran

    I posted an intermediate release (Version 0.5.1) to get it working correctly on the latest suggested build (craftbukkit 522).
    • Added /creaturebox access command, which tells the player what access they have.
    • Updated to support craftbukkit 522/bukkit 450
    • Removed the Slime creature type - slime spawners don't work as is.
    [MERGETIME="1299663686"][/MERGETIME]
    I'm pretty sure that version 0.5.1 will not work with build 493 (It uses new APIs that replace ones that have been removed).

    Version 0.5 may work on build 493, but I ended up moving directly to build 522, so I haven't tested it.
     
  9. Offline

    Em0srawk

    Ok I'll try it out, although it might only be for a day until all the other plugins I use are updated :p
     
  10. Offline

    tickleman

    COOL ! That IS the plugin we have been waiting for.
    Thanks a lot.

    So great !

    Cool cool cooll
    *excited*
     
  11. Offline

    niallmcfc

    lovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelovelove

    I cannot tell you how much I needed this. Imagine a monster fighting server with no monsters... But now I don't have to! Thanks!
    [MERGETIME="1299707904"][/MERGETIME]
    Hmmm, can't get it working. Shows nothing in cmd, but gives the internal error message when I try to edit a spawner. Any help would be appreciated.
     
  12. Offline

    Lodran

    I'll need a whole lot more info - craftbukkit version, creaturebox version, server logs, etc...
     
  13. Offline

    xelfarcherdv

    using 522, 0.5.1 : cant get the mobs to spawn anything. delay is always 0 :(
     
  14. Offline

    Lodran

    Check your server.properties file to insure that spawn-monsters=true and spawn-animals=true.
     
  15. Offline

    Daveyo

    spamming me about every quarter second with cannot pass creature.spawn or something. cb 522, .51. Had to disable I'll give you more info tomorrow.
     
  16. Offline

    xelfarcherdv

    did. that was what i checked first. i cant seem to find the problem. i am only running this plugin too.
     
  17. Offline

    Celtic Minstrel

    Ah, that's an interesting point. Does this mod support isOp() authentication? Because if it doesn't, you'll need to install the Permissions plugin as well.
     
  18. Offline

    niallmcfc

    Well I'm using craftbukkit 502, creature box 5.1, I'll see if I can get server logs later. It might be my craftbukkit version, but if I update none of my other plugins will work :/
     
  19. Offline

    MacVaultDweller

    Is it possible for you to make a version that is not dependent on a permissions plugin and would default to ops.txt
    if permissions not installed.
    Permissions plugins are a big pain in the *** and break everything every time they are updated or abandoned. Just another weak link in a rusty chain. Until a permissions system is written in stone I try to stay away from any mod that requires someone else's plugin to run. I often encourage makers of mods that do use permissions to make it so that their mod will default to op-list for implementation. Mod creators that put in a default to op list soon find out that they aren't harassed by admin.'s and their players when changes take place because limited functionality remains and is in the hands of trusted administrators.
     
  20. Offline

    Devilyoda

    ok i loaded up the plug in i get the name of the spawner to change to a spider spawner or zombie spawner, but nothing spawns when its put in a dark place and if i put it on in the light it spawns pigs. the creature in the middle of the box never changes but the name does. any suggestions?
     
  21. Offline

    Lodran

    It's sounding like default permissions aren't working right - it's supposed to be using isOp to set defaults. (op needed to give, change or drop on break, any player can place). I should be able to work on it some more tonight.
    [MERGETIME="1299789668"][/MERGETIME]
    Hmm, I did some testing with just craftbukkit 522, and creaturebox 0.5.1 (no permission plugin), and everything seems to work as I expect.

    Try typing /creaturebox access, to see if your permissions are what you expect. This should result in something like the following in chat:
    creaturebox 0.5.1 access: Operator
    creaturebox.set: true
    creaturebox.give: true
    creaturebox.dropSpawner: true
    creaturebox.placeSpawner: true

    Try typing /creaturebox debug, to see if creaturebox is cancelling spawns when you don't think it should be (warning, this will spam your chat - typing /creaturebox debug a second time will stop it).

    You'll see lines reading creaturbox:spawns - 0, which you can ignore - that's test code for an unimplemented feature.

    If you've powered a spawner using redstone, you'll also see lines reading creaturebox: onCreatureSpawn canceled spawn of {creaturetype} anytime a spawner which is redstone powered attempts to spawn a creature.

    Try /creaturebox set squid, or /creaturebox set pig_zombie - these spawn under pretty much any conditions.

    Also, once you've set a spawner's type, it will remain that type pretty much forever, even if the creaturebox plugin is removed, so if you have a spawner that works only when creaturebox is removed, I need to know about it.

    @niallmcfc - give creaturebox 0.5 a try - some bukkit APIs I rely on changed somewhere between 493 and 522 - 0.5 uses the old API while 0.5.1 uses the new API.

    @Celtic Minstrel, @MacVaultDweller - creaturebox defaults its access permissions if it can't find a permissions plugin to use - Operators get full permissions while Players (non operators) can only place spawners.

    @Devilyoda - see my testing suggestions above.

    @Daveyo - If there are java exceptions in your server log, I'll need a clipping.

    @xelfarcherdv - see my testing suggestions above.
     
  22. Offline

    niallmcfc

    Unfortunately the same error persists. Received a [SEVERE] error - Could not pass event CREATURE_SPAWN to creaturebox. Any ideas?
     
  23. Offline

    Lodran

    I need the stack trace from the server log to make any sense of the error.
     
  24. Offline

    niallmcfc

    Well you asked for it...

    A Small Sample (open)

    2011-03-10 21:01:30 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:30 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:30 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:30 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:32 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:32 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:32 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:32 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:32 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:32 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:32 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:32 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:35 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:35 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:35 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:36 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:36 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:36 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:38 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:38 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-10 21:01:38 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:386)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.World.a(World.java:750)
    at net.minecraft.server.SpawnerCreature.a(SourceFile:134)
    at net.minecraft.server.World.g(World.java:1412)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:348)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  25. Offline

    joshcvb

    @Lodran
    With bukkit and essentials you have the ability to spawn a giant zombie about 10 blocks high. Do you think you ll be adding that in to creaturebox?
     
  26. Offline

    Celtic Minstrel

    He can correct me if I'm wrong, but I think I heard that giants don't work very well in conjunction with spawners.
     
  27. Offline

    Lodran

    2011-03-10 21:01:38 [SEVERE] Could not pass event CREATURE_SPAWN to creaturebox
    java.lang.NoSuchMethodError: org.bukkit.event.entity.CreatureSpawnEvent.getMobType()Lorg/bukkit/entity/MobType;
    at lodran.creaturebox.creatureboxEntityListener.onCreatureSpawn(creatureboxEntityListener.java:46)

    Update to version 0.5.1 of creaturebox. CreatureSpawnEvent.getMobType() was replaced with CreatureSpawnEvent.GetCreatureType() in recent builds of craftbukkit, and in version 1.5.1 of creaturebox.

    If you still have trouble, post a server log showing the startup of your server, and the complete stack trace from the first [SEVERE] exception.

    [MERGETIME="1299802834"][/MERGETIME]
    @joshcvb, @Celtic Minstrel - I'm currently working replacing spawn events from spawners with my own events, which will give me considerable control over what gets spawned, and when. If it all works out, I'll eventually be able to spawn slimes, giants and riders.
     
  28. Offline

    MacVaultDweller

    So far so good thanks for all the hard work. I now have my squid back.
     
  29. Offline

    Devilyoda

    ok i tested the access and everything shows up as u put it but instead of operator i have admin. the debug said spawns 0 and than i got alittle message that said [Ljava.lang.string:mad:2e879 creaturebox onsetcommand

    any suggestions?
     
  30. Offline

    Daveyo

    this is what im spammed with, cb 522 .5.1. I'll test tomorrow morning since server is running right now.
     
  31. Offline

    Lodran

    It sounds like you don't have the permissions you need - what values were reported for creaturebox.set, etc?

    "admin" in the access command indicates that you're using a permission plugin (either Permissions or GroupManager), and you're in the admin group. If you don't have the permissions you need, you'll need to add the proper settings to your permissions plugin.

    The [LJava.lang.string... message is caused by a (harmless) text formatting bug. You can ignore it.
     

Share This Page