Block blockFrom = event.getBlock();
Block blockTo = event.getToBlock();
boolean lava = blockFrom.getType() == Material.LAVA || blockFrom.getType() == Material.STATIONARY_LAVA;
if (!event.isCancelled() && lava && BBSettings.lavaFlow) {
LavaFlow dataBlock = LavaFlowLogger.getFlow(blockFrom, blockTo);
dataBlock.send();
}
}
@Override
public void onSignChange(SignChangeEvent event) {