--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/06/29 14:57:08 1535 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/06/30 17:20:38 1540 @@ -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, DoorStorage store) throws ConflictingDoorException{ + 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]; @@ -81,6 +85,7 @@ width = Integer.parseInt( parts[6] ); height = Integer.parseInt( parts[7] ); + owner = parts[8]; blocks = new Location[width][height]; @@ -136,6 +141,7 @@ sb.append( ":" + width ); sb.append( ":" + height ); + sb.append( ":" + owner); return sb.toString(); } @@ -161,7 +167,7 @@ public void open(World world) { for (int w=0; w