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();
if (enderman.getCarriedMaterial() != null) {
try {
newState.setData(enderman.getCarriedMaterial());
} catch (Exception e) { }
newState.setType(enderman.getCarriedMaterial().getItemType());
}
DataManager.addEntry(new BlockChangeEntry("Environment", DataType.ENDERMAN_PLACE, block.getLocation(), block.getState(), newState));
}
}