AntiUGFarm prevents players from creating a farm under the earth. It simply checks if a block, which is not on 'ignored' list, is above the block you want to place.
You can config which blocks can't be placed in underground and which can be above farm plants.
Just install the plugin and change the config to you wishes.
The permission 'antiugfarm.ignore' allows users/groups to ignore the functions of this plugin.
checked: #the blocks that can't be placed in the underground - SAPLING - CROPS - CACTUS - SUGAR_CANE_BLOCK - PUMPKIN_STEM - MELON_STEM - CARROT - POTATO ignored: #block that can be above farm blocks - AIR - LEAVES - GLASS - THIN_GLASS string: notallowed: "You are not allowed to create a farm here!"
This plugin utilises Hidendra's plugin metrics system. You can opt-out under <yourPluginFolder>/PluginMetrics/config.yml
The following informations will be collected:
Get Source on GitHub