63 |
public void onBlockDamage(BlockDamageEvent event) { |
public void onBlockDamage(BlockDamageEvent event) { |
64 |
Player p = event.getPlayer(); |
Player p = event.getPlayer(); |
65 |
|
|
|
if (! p.isOp() ) |
|
|
return; |
|
|
|
|
66 |
|
|
67 |
if (p.getItemInHand().getType() == Material.RAW_FISH) { |
if (p.getItemInHand().getType() == Material.RAW_FISH) { |
68 |
if ( miners.contains(p.getName()) ) { |
if ( miners.contains(p.getName()) ) { |
82 |
Location l = location; |
Location l = location; |
83 |
|
|
84 |
for (int x=(radius*-1); x<=radius; x++) { |
for (int x=(radius*-1); x<=radius; x++) { |
85 |
for (int y=0; y<=radius; y++) { |
for (int y=0; y<=(radius*2); y++) { |
86 |
for (int z=(radius*-1); z<=radius; z++) { |
for (int z=(radius*-1); z<=radius; z++) { |
87 |
|
|
88 |
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); |