--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/06/27 19:34:03 1533 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/07/16 11:16:09 1579 @@ -14,24 +14,28 @@ final static int NORTH = 2; final static int SOUTH = 3; - Location leftUpper; + private Location leftUpper; - Location blocks[][]; // [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; - int height; + private int width; + private int height; + + private String owner; - public Door(Block sign, int width, int height) { + 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]; @@ -57,6 +61,16 @@ material = leftUpper.getBlock().getTypeId(); loadBlocks(); + + + for (int w=0; w