Chunk chunk = world.getChunks().getChunk(chunkX, chunkZ);
int oldType = chunk.getType(localX, localZ, y);
chunk.setType(localX, localZ, y, Blocks.TYPE_AIR);
// TODO this should also be somewhere else as well... perhaps in the chunk.setType() method itself?
BlockChangeMessage bcmsg = new BlockChangeMessage(x, y, z, 0, 0);
SoundEffectMessage soundMsg = new SoundEffectMessage(SoundEffectMessage.DIG_SOUND, x, y, z, oldType);
for (Player p: world.getPlayers()) {
p.getSession().send(bcmsg);
if(p != player && player.isWithinDistance(p)) {
p.getSession().send(soundMsg);