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 |
|
|
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 |
} |
} |