TreeFeller
TreeFeller is a plugin that allows you to chop a tree down like cacti. Break the bottom block and the entire tree will fall.
TreeFeller is being created by me, Marcus Krueger. In-game I am Spartaness. On here I am Waizujin and on the Bukkit forums and Minecraft forums I am The Wiseman. I decided to create this plugin because all of the other plugins were outdated, or buggy. I am still learning Java so development may be a bit slow, but I am learning.
Having issues with TreeFeller? Have a question? Just want to talk? Add me on MSN as "[email protected]" or on Skype as "Waizujin".
well i found another error that if you are chopping the tree with the plugin the tree will fall but logs that are sideways stay sideways and you cant do anything with the sideways logs exeplt place them and rechop them but of course it take even more durability off the axe
errors
treefeller
11:27:02 [WARNING] Unexpected exception while parsing console command "treefeller" org.bukkit.command.CommandException: Unhandled exception executing command 'treefeller' in plugin Tr eeFeller v0.7.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:498) at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:490) at net.minecraft.server.DedicatedServer.ai(DedicatedServer.java:249) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:214) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player at me.TheWiseman.TreeFeller.TreeFeller.onCommand(TreeFeller.java:83) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 8 more
The forked version that I modified has been working for me for over four months now. It appears to work in CB version 1.3.1-r2.0 as well. (You can get it here: https://bitbucket.org/Dexter15/treefeller/src/1fe0fd5e0b8c/target)
Can anyone suggest a good alternative to this plug-in? If there is an alternative that is just as good as this one, and up to date, then I will just switch to using that instead of reinventing/maintaining the wheel. However, if there isn't another plug-in as featured as this one (without going too far), then maybe I will release my fork as its own plug-in here on BukkitDev.
-Dex
Would be good if you could add different tree types to it via the config.
Still doesn't work
@EMOberger
Doesn't work for me either. Chop tree, nothing happens. Looks like 0.7.1 is indeed broken in Craftbukkit-1.2.5-R1
I took this plugin as a learning experience and overhauled it to (hopefully) improve the code, fix another bug and add a new feature. Updated to version 0.8 and created a pull request to Waizujin's repository.
From the changelog:
-Dex
Version 0.7.1 requires the WorldGuard plugin. It looks like it isn't checking to see if WorldGuard is enabled before trying to get the plugin (like the 0.7.1 change for LogBlock).
EDIT: Actually, it seems that Bukkit sees your private method that returns a WorldGuard object and throws the error because of that, even though you never actually call that method unless you have first verified that the plugin is enabled. Bukkit doesn't seem care, claims you are trying to register events for a missing (in my case at least) plugin and so it doesn't register your block listener events.
I downloaded a copy of your code and fixed this problem, as well as made a few other changes suggested by Eclipse. What is my next step? Create a github or bitbucket account, upload these files and then submit a pull request for your repository from mine?
EDIT 2: Ok, I stumbled through creating a fork, committing my changes to it on BitBucket and creating a pull request to your repository. I didn't commit my preference and classpath changes separately like I intended to, so I think my pull request is a little sloppy and is going to change more than you want. I'll let you resolve those setting and classpath issues. :)
That reminds me though, the version of mcMMO that I downloaded in order to compile the code had changed the PlayerProfile.getTreefellerMode method (or whatever it was previously called). I changed my code to work with the new "getAbilityMode" method instead. That raises the mcMMO version dependency. Something else I will let you take care of.
-Dex
If I chop a tree nothing happens besides the normal. and no error code. treefeller 0.7.1 craftbukket 183 .
config
TreeFeller 0.7.1 broken in CB 1.2.5 RB
The source of TreeFeller can be found here: https://bitbucket.org/Waizujin/treefeller
I will attempt to keep it updated. If you find a fix or something you want added and can code it, create a pull request and I may just add it. :)
Yer, i'd like that & also a replant of same tree sapling?
@slug1982
If there is interest in it destroying the blocks BELOW as well as ABOVE then I might be able to add that as a feature.
ahh thanks my bad, it leaves bottom block - but can live with that! cheers!
@slug1982
It should be destroying the entire tree regardless of the block hit. Does this happen to EVERY tree or just some trees?
Could you please add an option to make it destroy the tree is any block is hit? (like lumberjack used to)
Prob I have is we still have half trees floating around due to players not hitting the bottom block 1st
@DiggerMark
Yeah the entire permissions system is screwed up. I plan to rewrite it and use Vault so we won't have these permission issues in the future.
@deleted_7554077
I can get you an update for CB 1.2.4 B #2117 but not guarantee on all those features. That's quiet a bit to implement. XD
I run into permission issues for regular members. I'm using Group Manager. Configuration:
Using /manucheckp on members returns members are allowed to TreeFeller.chop. However, treefeller does not work for members after using /tf on.
Hey, can you now make an update for CB 1.2.4 Build 2117 and add these features:
1. Auto sapling replant (Either only 1 or all that drop)
2. Maybe custom leaf decay?
3. Was this working in creative mode? If not then definately make it work there too :D
4. Maybe add special tools that cut the tree down like cactus?
Thanks :D
@nerdzilla33
Glad its working for you! :D