Block block = event.getBlock();
// Enderman picking up block
if (event.getTo() == Material.AIR && Config.isLogged(DataType.ENDERMAN_PICKUP)) {
if (block.getType() == Material.WALL_SIGN || block.getType() == Material.SIGN_POST)
DataManager.addEntry(new SignEntry("Environment", DataType.SIGN_BREAK, event.getBlock()));
DataManager.addEntry(new BlockEntry("Environment", DataType.ENDERMAN_PICKUP, block));
} else if (Config.isLogged(DataType.ENDERMAN_PLACE)) {
// Enderman placing block
Enderman enderman = (Enderman) event.getEntity();
BlockState newState = block.getState();