--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/TemplateCommand.java 2012/03/18 10:52:16 1743 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/TemplateCommand.java 2012/03/18 11:05:18 1745 @@ -127,6 +127,10 @@ String element = elements[i].trim(); int val = Integer.parseInt( element ); + if (val < 0 || val>255) { + plugin.getLogger().info( "Template: invalid value on line " + lines + ": " + val ); + return null; + } array[x][y][i] = val; } catch (Exception e) { @@ -173,7 +177,7 @@ int type = template[i][j][k]; - plugin.getLogger().info( String.format( "Setting typeid at %d,%d,%d to %d", x,y,z, type) ); + //plugin.getLogger().info( String.format( "Setting typeid at %d,%d,%d to %d", x,y,z, type) ); world.getBlockAt(x, y, z).setTypeId( type ); }