--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2013/01/09 21:09:10 1911 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java 2013/01/13 13:05:16 1912 @@ -31,8 +31,10 @@ private boolean isPrivate; + private String password; + - public Door(Block sign, int width, int height, DoorStorage store, String owner, boolean isPrivate) throws ConflictingDoorException{ + public Door(Block sign, int width, int height, DoorStorage store, String owner, boolean isPrivate, String password) throws ConflictingDoorException{ leftUpper = sign.getLocation().clone(); this.width = width; @@ -41,6 +43,7 @@ this.owner = owner; this.isPrivate = isPrivate; + this.password = password; direction = sign.getData() - 2; @@ -97,13 +100,14 @@ loadBlocks(); }*/ - public Door(Location loc, int direction, int width, int height, String owner, boolean isPrivate) { + public Door(Location loc, int direction, int width, int height, String owner, boolean isPrivate, String password) { leftUpper = loc; this.direction = direction; this.width = width; this.height = height; this.owner = owner; this.isPrivate = isPrivate; + this.password = password; loadBlocks(); } @@ -251,5 +255,9 @@ public boolean isPrivate() { return isPrivate; } + + public String getPassword() { + return password; + } }