--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/09/27 18:27:54 1604 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2011/10/01 15:21:07 1605 @@ -27,15 +27,19 @@ private int height; private String owner; + + private boolean isPrivate; - public Door(Block sign, int width, int height, DoorStorage store, String owner) throws ConflictingDoorException{ + public Door(Block sign, int width, int height, DoorStorage store, String owner, boolean isPrivate) throws ConflictingDoorException{ leftUpper = sign.getLocation().clone(); this.width = width; this.height = height; this.owner = owner; + + this.isPrivate = isPrivate; direction = sign.getData() - 2; @@ -92,12 +96,13 @@ loadBlocks(); }*/ - public Door(Location loc, int direction, int width, int height, String owner) { + public Door(Location loc, int direction, int width, int height, String owner, boolean isPrivate) { leftUpper = loc; this.direction = direction; this.width = width; this.height = height; this.owner = owner; + this.isPrivate = isPrivate; loadBlocks(); } @@ -241,4 +246,8 @@ return direction; } + public boolean isPrivate() { + return isPrivate; + } + }