/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/SuperMiner.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/SuperMiner.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1522 by torben, Fri Jun 24 11:13:59 2011 UTC revision 1585 by torben, Thu Aug 4 19:34:01 2011 UTC
# Line 24  public class SuperMiner extends BlockLis Line 24  public class SuperMiner extends BlockLis
24                    
25          Set<String> miners = new HashSet<String>();          Set<String> miners = new HashSet<String>();
26    
27            final static int radius = 5;
28    
29          @Override          @Override
30          public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {          public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
31                                                    
# Line 77  public class SuperMiner extends BlockLis Line 79  public class SuperMiner extends BlockLis
79    
80                  Location l = location;                  Location l = location;
81    
82                  for (int x=-5; x<=5; x++) {                  for (int x=(radius*-1); x<=radius; x++) {
83                          for (int y=0; y<=5; y++) {                          for (int y=0; y<=radius; y++) {
84                                  for (int z=-5; z<=5; z++) {                                  for (int z=(radius*-1); z<=radius; z++) {
85    
86                                          Block b = world.getBlockAt( l.getBlockX()+x, l.getBlockY()+y, l.getBlockZ()+z);                                          Block b = world.getBlockAt( l.getBlockX()+x, l.getBlockY()+y, l.getBlockZ()+z);
87    
88                                          int id = b.getTypeId();                                          int id = b.getTypeId();
89    
90                                          if (id == 1 || id == 2 || id == 3 || id == 4 || id == 8 || id == 9 || id == 10 || id == 11 || id == 13) {                                          if (id == 1 || id == 2 || id == 3 || id == 4 || id == 8 || id == 9 || id == 10 || id == 11 || id == 13 || id == 87) {
91                                                  b.setTypeId( 0 );                                                  b.setTypeId( 0 );
92                                          }                                          }
93                                  }                                  }

Legend:
Removed from v.1522  
changed lines
  Added in v.1585

  ViewVC Help
Powered by ViewVC 1.1.20