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 Feb 21, 2012R5 is coming.. new event system will be removed =)
-
View User Profile
-
Send Message
Posted Feb 14, 2012@Cubanrevel
No need to.
-
View User Profile
-
Send Message
Posted Feb 14, 2012will you update the plugin to 1.1-R3 or it don't need to?
-
View User Profile
-
Send Message
Posted Feb 8, 2012@robotmegacorp
Thanks ! :D
-
View User Profile
-
Send Message
Posted Feb 8, 2012Just wanted to say thanks for this one-of-a-kind plugin.
-
View User Profile
-
Send Message
Posted Feb 7, 2012@The_Wizard
It's pretty tricky to work out where the tree was, it should improve with time once I get through the huge pile of work I have at the moment.
-
View User Profile
-
Send Message
Posted Feb 7, 2012Sometimes the plugin doesn't remove all the logs from normal trees.
I find some trees with only one log.
It is my server or the plugin? I don't have any errors.
-
View User Profile
-
Send Message
Posted Feb 3, 2012Is there anything I can do to make it catch all the floating trees? I login and every day have to clean a few out of the starting area. Also, my players seem to be retarded and chop out the middle of trees, any way this plugin can detect that?
-
View User Profile
-
Send Message
Posted Feb 1, 2012@Rowtag87
I just forgot to update the version number, this works fine with 1.1.
-
View User Profile
-
Send Message
Posted Feb 1, 2012Please update :) Great plugin
-
View User Profile
-
Send Message
Posted Jan 27, 2012@Warhawker
You realize I don't work for you ...
-
View User Profile
-
Send Message
Posted Jan 27, 2012@VariousArtist
Yep the is-that-a-tree-or-a-house check is not perfect yet.
-
View User Profile
-
Send Message
Posted Jan 27, 2012This is the only plugin of its kind. Please optimize as it only nabs a few trees, and not all of them.
-
View User Profile
-
Send Message
Posted Jan 19, 2012Hey wide, seems the plugin has problems to remove floating bigtrees? Could use a bit improvement there! Besides that it adds a decent anti-uglyfication level to our server! Nice!
-
View User Profile
-
Send Message
Posted Jan 16, 2012@VariousArtist
Thanks :D I'm glad you like it. It's not perfect yet but it does remove enough of the floaty trees to make the world look nice still :D
-
View User Profile
-
Send Message
Posted Jan 15, 2012Hey wide_load!
Thanks for this fantastic plugin! We always tried to maintain "good-looking" servers and those floaters have always been a sore in our teams eyes! Your plugin is a great relief for our staff. And they like the lead much more now that they dont have to head out to remove those nasty floaters! =)
Folks, if you dont want to have a server that looks like the common riff-raff-rubble server - use this!
You rock! Keep up the great work!
Greetings from MadRealms!
-
View User Profile
-
Send Message
Posted Jan 7, 2012Well then there could be an.. "Nomoremessytrees" plugin =D to fix the mess..
Or it could log all of them and then .. remove it? Who cares if it stays or vanishes cos we are at the business of vanishing trees in the first place?
-
View User Profile
-
Send Message
Posted Jan 7, 2012@JoneKone
Nice idea, but it would be very trickery to implement without making it very easy for people to make a big mess.
Yeah, a few trees will stay floating. this is to do with the checks to make sure it's not actually a log house and I am still trying to work out how to make it perfect.
-
View User Profile
-
Send Message
Posted Jan 7, 2012A way to "trop the tree" .. Like in real world.. You don't instantly get the block but you will chop it down. And it will fall in its side to the ground OR! on other trees. and you just won't get the blocks if you chop one block from the stump..
=D Me no good in engle.. But if you would like to know MORE!? =D please ask..
Currently not all trees vanish like they should.
-
View User Profile
-
Send Message
Posted Dec 31, 2011@JoneKone
No to HawkEye and yes to Guardian in the future :)