NoFloatingTrees
NoFloatingTrees
Description
This plugin will try to remove any logs that are left floating in the air when a player cuts down a tree so that the leaves can decay. Floating leaves are a pet hate of mine and the current ways to tackle them seem to either involve giving the player lots of easy free wood or take up an awful lot of admin time.
Any tree that has been partially cut down will decay over time as leaves normally do 40 seconds after being cut. A log that decays naturally will have a 15% chance of dropping an item, this should discourage people from cutting down trees and then waiting for them to fall. All of these chances and timings can be changed via the config file.
If you have the LogBlock plugin installed, any blocks that this removes will be logged as the user NoFloatingTrees. Note this this will only work on trees that are cut down when the plugin is installed, there is not much that can be done about existing ones :(
Bug Reports / Suggestions
If you find a bug, encounter a problem or have a suggestion, please fill out a ticket via the Tickets link above. I do not have the time to read through the comments section, any comment that fits the previous three categories will be ignored.
Commands
/nft queue - Prints the number of blocks currently in the decay queue. To use this command you must have the nofloatingtrees.queue.size permission which also defaults to OPs only.
/nft purge - Used to removed all floating trees regardless of how close a player is. To use this command you must have the nofloatingtrees.queue.purge permission which defaults to OPs only.
Config
Default
use-logblock: true ignore-worlds: - world_nether - world_the_end decay: frequency: 2 wait-time: 40 chance: 15 drop-chance: 15
use-logblock
If this is set to false blocks removed by the plugin will not be logged even if LogBlock is found.
ignore-worlds
If you have worlds where people can't (or just don't) cut down trees you should list them here, this will improve performance slightly.
decay
frequency
How often floating logs should try to decay, in seconds.
wait-time
How long a log should stay floating before starting to decay, also in seconds.
chance
How likely it is for a low to decay per try this is a percentage so setting it to 100 will cause the entire tree to vanish in one go.
drop-chance
Similar to the above except this controls how likely it is for a decaying log to drop an item.
Contributing
Contributions to the project are very much welcome, if you have a feature that you want implemented and know a nice way to do it then consider forking the repo and submitting a pull request. These will be accepted as long as the following simple guidelines are followed.
- Do not edit the structure of the pom.xml file, feel free to add a dependency if you need it but the formatting and structure should not be changed.
- If you are exposing a new API method, add a JavaDoc comment to it, but don't over-comment internal code.
- Follow the existing code style, don't antagonise over every space though !
All dependencies that are used are now available from a public Maven repo, so you don't have to worry about building several other projects just to add a simple change any more.
Source Code
Dev Builds
Changes Since Last Release
Download
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
http://bukkit.jacekk.co.uk:8000/job/NoFloatingTrees/
-
View User Profile
-
Send Message
Posted Dec 31, 2011Can this use HawkEye allso? And in the future Guardian?
-
View User Profile
-
Send Message
Posted Dec 26, 2011@panade
Treehouses may be a problem, usually they will break some of the other checks but I have had one go missing on my server. It's easy enough to use LogBlock to roll it back.
-
View User Profile
-
Send Message
Posted Dec 25, 2011thanks for this. i will try this from now on. :-D the problem with all those tree plugins is, they just keep the game easier and easier. i dont wanna give those lazy floating tree makers any benefits :-D
i just hope ur leaf/100 concept works good, because some people may build a treehouse and if they remove lower blocks? but we will see.
-
View User Profile
-
Send Message
Posted Dec 21, 2011@Rowtag87
There is no need to update, it works fine.
-
View User Profile
-
Send Message
Posted Dec 21, 2011Can u update this Plugin for 1.0? :)
-
View User Profile
-
Send Message
Posted Dec 6, 2011@HotelErotica
Sorry, making the game easier is not what this plugin is for at all
-
View User Profile
-
Send Message
Posted Dec 6, 2011Would it be possible to add a toggleable feature for replant I hate the plugins that make the trees explode and they seem to be the only ones with the feature todo replant :(
-
View User Profile
-
Send Message
Posted Dec 1, 2011@andune
Me too :) The idea was to stop people getting loads of easy wood too. Keep the game as close to vanilla as possible :D
-
View User Profile
-
Send Message
Posted Nov 30, 2011I much prefer this to the chop-one, get-it-all plugins that are out there.
-
View User Profile
-
Send Message
Posted Nov 29, 2011Hey wide, just a heads-up - there are at least a couple of other plugins solving this same problem, and both that I've seen just knock the entire tree down when you chop a low block. I think this makes a lot more sense than a tree top than hangs around, then poofs magically later. However I don't think the others do a check for player-placed blocks like glass, so that's one plus you have over them.
Sorry to post this so far into your project, but I seriously just saw yours today.
-
View User Profile
-
Send Message
Posted Nov 5, 2011@andune
The source should be in the .jar file. I won't be creating a repo since the way I have my development area set up does not really work with git.
-
View User Profile
-
Send Message
Posted Nov 5, 2011Sounds like a decent plugin - would you please share the source code here or on github (and link it appropriate under 'repository') so that:
A) Other folks can look at it and verify it's doing what it says it is. B) Other folks can look at it and verify it's going to perform well (or help contribute code back to performing better if it's not) C) If we use this plugin and you go away (as often happens with plugin devs), someone else can take over the work or maintain it for future Bukkit versions.
Thanks, look forward to using it after I get a chance to review the code.
-
View User Profile
-
Send Message
Posted Oct 12, 2011does this work for the RB 1317 because my trees is not going anywhere?
-
View User Profile
-
Send Message
Posted Sep 4, 2011Love it. Works perfectly.