AntiUGFarm
AntiUGFarm
Summary
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.
Usage
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.
Config
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!"
Metrics
This plugin utilises Hidendra's plugin metrics system. You can opt-out under <yourPluginFolder>/PluginMetrics/config.yml
The following informations will be collected:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's implementation and game version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- Your online-mode
- Your server location
Source
Get Source on GitHub
@poncjusz
Can you plant the seeds when the roof is there? Also, what material is your roof made of?
I plant some seeds and then build roof above them. Wehat growth normally,without any restrictions. So, this plugin can be override and now is useless. Pleace fix it.
@madtomic
Yes
Does it work with cb1.7.2-r0.3?
@Makiol
The plugin should work as intended and is very unlikely to break in the future. ;)
please create this amazing plugin for 1.5!!!! we all need it!!
OK, problem solved. It was a screw-up on my part. The short version is, I was testing as an Op, and so of course I could make farms where I wanted to. When I tried with a non-op player, it worked just as it should. Thanks again for looking into things, SydMontague, and for making this great plug-in, and I'm sorry I caused you extra work for no reason!
Thanks, I'll try the new version out, and report back.
Edit: It still didn't work. I just left the config file at the default. I went underground 3 or 4 blocks, with dirt overhead, and tried to plant wheat seeds and sugarcane, and both worked, with no message sent. It does give the "enabled" message in the server console, and it created the config file, so it seems like it should be working. I'm using
craftbukkit-1.2.5-R4.1-MCPC-SNAPSHOT-174+r4.1update0721.jar
if that helps for troubleshooting. Is there anything else I can try to help pinpoint the issue? Some sort of debug mode?
P.S. It still says version 0.3.1 in the config file and the console messages, just so you know.
@Twilight314
I just uploaded 0.3.2 to adress the empty config file issue. However, it was still not possible for me to create farms in undergrund.
Just downloaded and tried this plug-in, and...it seems to do nothing.
After running the server with it installed once, it generated the config.yml file, which contained:
version: 0.3.1
And that was it. Empty except for that one line. I pasted in the default config you have listed, but it still seems to do nothing (I can still plant wheat, sugarcane, etc, underground). In the server console, it shows that the plugin is enabled, but it just doesn't seem to be working. Any ideas why the config file generates almost empty? I tried deleting it and regenerating it, but it did the same thing. I'd really like to be able to use this on my server, but it has to, you know, work first. :)
Thanks in advance for making this plug-in, as it is exactly what I was looking for. I just need a bit of help getting it going!
<<reply 703887="">>
I just uploaded 0.3.1 which fixes this error. In fact I fixed it months ago, but as no negative side effects occured, I didn't released it...
But thank you for your report. :)
PS: It may take a while until you can download the file. It must be approved first...
Hello, Awesome plugin you have here! I started using it but every time I load up my server I get this: 21:44:54 [INFO] [AntiUGFarm] Enabling AntiUGFarm v0.3 21:44:54 [WARNING] Could not save config.yml to plugins/AntiUGFarm/config.yml because config.yml already exists. I went and snooped in the config for a while, couldn't see any setting that said *erase once your done configuring* Any ideas? It isn't affecting the plugin or any other ones, I just hate to see Warning and Severe in the console.
@Jackjan
Yep, it's running on my server without problems.
Works with 1.2.5?
Awesome plugin!
Love this plugin! Thank you <3
We have problem that in a certain pillar we can't place any blocks anymore and always get the message "you are not allowed to create a farm here!" even though we are not trying to create a farm or even has a block above it.
edit: found the mistake...there was a farm underneath it which was build before the plug in was added
It says GPLv3 but there's no source code! Where's the source code?
Okay changing seems to have worked (i assuem thats a auto config issue)
@Axebyte oh... well, I found it
change 60 to 59, as in the default config above.