--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/secretdoor/DoorStorage.java 2016/11/18 13:14:07 3133 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/secretdoor/DoorStorage.java 2016/11/18 13:23:24 3134 @@ -94,7 +94,10 @@ Location loc = new Location(world, x, y, z); String directionStr = config.getString( key + ".direction", ""); - BlockFace direction = BlockFace.valueOf(directionStr); + //BlockFace direction = BlockFace.valueOf(directionStr); + int dir = Integer.parseInt( directionStr ); + + BlockFace direction = BlockFace.values()[ dir ]; int width = config.getInt( key + ".width", 0); int height = config.getInt( key + ".height", 0);