--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/SuperMiner.java 2011/08/02 17:37:35 1584 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/SuperMiner.java 2011/08/04 19:34:01 1585 @@ -24,6 +24,8 @@ Set miners = new HashSet(); + final static int radius = 5; + @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { @@ -77,9 +79,9 @@ Location l = location; - for (int x=-5; x<=5; x++) { - for (int y=0; y<=5; y++) { - for (int z=-5; z<=5; z++) { + for (int x=(radius*-1); x<=radius; x++) { + for (int y=0; y<=radius; y++) { + for (int z=(radius*-1); z<=radius; z++) { Block b = world.getBlockAt( l.getBlockX()+x, l.getBlockY()+y, l.getBlockZ()+z);