This plugin is very simple. It makes it so that when you land on crops, they do not get stamped out if you are wearing Feather Falling. More technical details below
@EventHandler
public void onEntityChangeBlock(EntityChangeBlockEvent e) {
Entity entity = e.getEntity();
if (entity instanceof Player) {
Player player = (Player) entity;
Material blockType = e.getBlock().getType();
// Check if the block type is changing to DIRT
if (blockType == Material.FARMLAND && e.getTo() == Material.DIRT) {
ItemStack boots = player.getInventory().getBoots();
if (boots != null && boots.containsEnchantment(Enchantment.PROTECTION_FALL)) {
e.setCancelled(true);
}
}
}
}
}