--- miscJava/minecraft-plugins/hoeruputils/src/HoerupUtils.java 2010/12/04 11:38:36 1201 +++ miscJava/minecraft-plugins/hoeruputils/src/HoerupUtils.java 2010/12/04 21:32:52 1202 @@ -261,7 +261,7 @@ } private void setSurface(Player player, String[] split) { - int valid_block_array[] = {1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 35, 41, 42, 43, 44, 45, 46, 48, 49, 56, 57, 73, 74, 79, 80, 82} ; + int valid_block_array[] = {1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 35, 41, 42, 43, 44, 45, 48, 49, 56, 57, 73, 74, 79, 80, 82} ; final int BLOCK_MAX = 86; @@ -345,12 +345,18 @@ } if (split.length == 3) { + int id; try { - Integer.parseInt( split[2] ); + id = Integer.parseInt( split[2] ); } catch (Exception e) { - player.sendMessage(split[0] + ": radius must be an integer"); + player.sendMessage(split[0] + ": id must be an integer"); return false; } + if ( id == 46) { + player.sendMessage("Sorry dave, i can't do that"); + return false; + } + } return true;