--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/06/27 18:10:05 1532 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/07/16 11:16:09 1579 @@ -14,22 +14,30 @@ final static int NORTH = 2; final static int SOUTH = 3; - Location leftUpper; + private Location leftUpper; - Location blocks[][] = new Location[2][2]; // [width][height] - [0][0] == leftUpper + private Location blocks[][]; // [width][height] - [0][0] == leftUpper - int material; + private int material; - int direction; + private int direction; - int width = 2; - int height = 2; + private int width; + private int height; + + private String owner; - public Door(Block sign) { + public Door(Block sign, int width, int height, DoorStorage store, String owner) throws ConflictingDoorException{ leftUpper = sign.getLocation().clone(); + this.width = width; + this.height = height; + + this.owner = owner; + + blocks = new Location[width][height]; direction = sign.getData() - 2; @@ -53,6 +61,16 @@ material = leftUpper.getBlock().getTypeId(); loadBlocks(); + + + for (int w=0; w