Oops, I broke your plugins!

Discussion in 'Plugin Development' started by EvilSeph, Jan 15, 2011.

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

    Dinnerbone Bukkit Team Member

    Jukebox materialdata has been removed (not deprecated), a jukebox blockstate has been made in its stead. This is an overdue change and while we apologise for the lack of deprecation, it's not really possible to sanely deprecate this (plus, the materialdata hasn't worked in quite some time I believe)
     
  2. Offline

    Dinnerbone Bukkit Team Member

    All the server.createWorld methods are now deprecated, and in their stead we have a new system for creating/loading worlds. It may look a little ugly at first, but consider just how many optional vars there are (and will be, with more on their way) and how many dozens of constructors we'd need to make that work.

    New way to create/load worlds:
    Code:
    World world1 = WorldCreator.name("nameofWorld").seed(12345).generator("somePlugin:meep").createWorld();
    World world2 = WorldCreator.name("nameofWorld").copy(world1).environment(NETHER).createWorld();
    World world3 = WorldCreator.name("nameofWorld").createWorld();
    
     
    tyzoid likes this.
  3. Offline

    EvilSeph Retired Staff

    PaintingBreakByWorldEvent has been removed. You need to use PaintingBreakEvent instead and the new RemoveCause enum additions.
     
  4. Offline

    Dinnerbone Bukkit Team Member

    Blocks are no longer guaranteed to be the same object when retrieved. You should now use .equals instead of == to check if two Blocks are the same.

    Code:
    Block block1 = world.getBlock(0,60,0);
    Block block2 = world.getBlock(0,60,0);
    (block1 == block2) == false
    block1.equals(block2) == true
    
     
  5. Offline

    feildmaster Retired Staff

    tyzoid likes this.
  6. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı Retired Staff

    From Wolvereness:

     
Thread Status:
Not open for further replies.

Share This Page