Inactive [MECH] TreeAssist - Auto-Replant and Auto-Chop Trees [1.4.2-RB0.1]

Discussion in 'Inactive/Unsupported Plugins' started by itsatacoshop247, Apr 25, 2011.

  1. Offline

    itsatacoshop247

    TreeAssist - Auto Replants
    Version: v5.0

    This plugin will replant trees when they are cut down (or burnt down), and will keep it the same tree type. Also has a custom leaf decay planter and tree removal.

    Checkout the BukkitDev page!

    Most Recent Video


    Here is a video of the 3.0 Tree Removal Feature (slightly outdated):


    Here is a video of the normal functions

    Features:
    • Replants trees when the bottom log is cut down, or burnt down.
    • Break a birch tree? Replants a birch sapling. Same for all type of trees
    Commands
    • '/TreeAssist Toggle' - lets a player turn TreeAssist features on or off.
    • '/TreeAssist Global' - Toggles TreeAssist for everyone
    • '/TreeAssist Reload' - Reload the plugin's config file
    Config
    Permissions
    • treeassist.autoremove - Should the player be allowed to break the bottom block and the whole tree comes down?
    • treeassist.replant - When the player chops down a tree, should a sapling replant itself?
    • treeassist.toggle - Gives player access to the '/TreeAssist Toggle' command to turn TreeAssist on or off
    • treeassist.toggle.global - Gives player access to the '/TreeAssist global' command to turn TreeAssist on or off for everyone
    • treeassist.reload - access to '/treeassist reload'
    Download

    Source Code

    See the full change-log here!

    Roadmap:
    • Suggest things!
    • Custom Leaf Drops
    Like the plugin? Help me keep my programming hobby alive! Please consider donating!
    [​IMG]
     
  2. Offline

    EraChanZ

    Awesome, hope to have the fixed update soon!
     
  3. Offline

    Riffy

    Dumb question, but how do I see which vers of bukkit we got on here? I got the log.
     

    Attached Files:

  4. Offline

    Captain Seasick

    This stuff is PROPER! One of the best plugins for MC yet.
     
  5. Offline

    Riffy

    Tried again tonight changing soem stuff but still no dice. heres the log.
     

    Attached Files:

  6. Offline

    thiagobrez

    Does it work on CraftBukkit 1.2.5?
     
  7. Offline

    itsatacoshop247

    Should be fine, but I'll be doing an update/official 1.2.5 build tomorrow.
     
  8. Offline

    thiagobrez

    Thankss bro
     
  9. Offline

    polo3400

    Please could you add a way to see who broke a whole tree, IE provide plugins such as CoreProtect and Hawkeye a way to see who broke each block of wood. Not knowing who broke things is a bit annoying and its keeping me from putting it on my server unfortunately.
     
  10. Offline

    itsatacoshop247

    Oh, I just realized it may stop the block break event from being logged. Not sure how I can log EVERY tree block, especially to cover all the different protection plugins, but I can at least make it log the bottom one.
     
  11. Offline

    polo3400

    Its basically for the fact that if someone hits one piece of log on a completely log house, the whole house will fall down; ie griefing tool. Being able to roll this back would help a lot.
     
  12. Offline

    itsatacoshop247

    Ah yes, well with the new version they shouldn't have to worry about that happening. Unless they make the house out of logs and leaves.

    I'll look into triggering blockbreak events when I break blocks, but I'm not sure how to.
     
  13. Offline

    Telbaru

    13:39:19
    CONSOLE:
    [WARNING] Could not properly handle event BLOCK_PHYSICS:
    13:39:19
    CONSOLE:
    code got accessed from another thread: me.itsatacoshop247.TreeAssist.TreeAssistReplant
    13:39:19
    CONSOLE:
    [INFO] Please contact one of the authors of plugin 'TreeAssist': itsatacoshop247
    13:39:19
    CONSOLE:
    [INFO] This error is logged only once: it could have occurred multiple times by now.
    I should send it to you :D
     
  14. Offline

    itsatacoshop247

    It is an error with NoLagg, and I am aware of it, thanks.
     
  15. Offline

    Telbaru

  16. Offline

    littleMe

    I love this plugin<3

    Thanks so much for making it!
     
  17. Offline

    itsatacoshop247

    v4.0:
    • HUGE improvement to AutoTreeDestruction
    • Can break anywhere along the trunk
    • Sapling protection after replant (configurable time)
    • Improved fast leaf decay (set to a true or false in the config)
    • Proper tool damage applied when destroying the whole tree
    • Plugin now ignores user placed blocks
    • Plugin will now support non-Vanilla Tree types
    • Fixed leaves dropping wrong sapling type
    • New command - '/treeassist global' to turn the plugin on or off for everyone - permission 'treeassist.toggle.global'
    • MultiWorld support (Can enable in some worlds and not others
    • Better searching to avoid breaking user homes/buildings
    • Fixed an error where players bypassed permissions checks
    Needs tested:
    • Should have fixed the error with NoLagg when replanting a sapling
    • Should work properly with Factions/Towny/etc
    Download here!
     
  18. Offline

    Warren48091

    Taco, I love you.

    THANKS SO MUCH!
     
    itsatacoshop247 likes this.
  19. Offline

    Telbaru

    The Mulitvers function doesn't work rightly. I set the worlds but in the other worlds (without world) the trees doesn't replanting.
     
  20. Offline

    itsatacoshop247

    Does it work when you allow it in all worlds?
     
  21. Offline

    Telbaru

    Than it work on no world. If i disable the function with worlds it works fine on the world ''world'' but with the multiverse-function i does nothing on all worlds

    Here is a small test on the betaBuild 1.2.5 1.2:
    14:24:25 [WARNING] Could not properly handle event BLOCK_PHYSICS:
    java.lang.IllegalAccessError: Synchronized code got accessed from another thread
    : me.itsatacoshop247.TreeAssist.TreeAssistReplant
    at org.bukkit.event.Listener.onBlockPhysics(Listener:0)
    at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:301)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:459)
    at net.minecraft.server.World.k(World.java:513)
    at net.minecraft.server.World.applyPhysics(World.java:498)
    at net.minecraft.server.World.update(World.java:462)
    at net.minecraft.server.World.setTypeId(World.java:434)
    at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:92)

    at me.itsatacoshop247.TreeAssist.TreeAssistReplant.run(TreeAssistReplant
    .java:22)
    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)

    14:24:25 [INFO] This error is logged only once: it could have occurred multiple
    times by now.
    14:24:25 [INFO] Please contact one of the authors of plugin 'TreeAssist': itsata
    coshop247
    14:24:25 [WARNING] Could not properly handle event BLOCK_PHYSICS:
    java.lang.IllegalAccessError: Synchronized code got accessed from another thread
    : me.itsatacoshop247.TreeAssist.TreeAssistReplant
    at org.bukkit.event.Listener.onBlockPhysics(Listener:0)
    at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:301)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:459)
    at net.minecraft.server.World.k(World.java:513)
    at net.minecraft.server.World.applyPhysics(World.java:498)
    at net.minecraft.server.World.update(World.java:462)
    at net.minecraft.server.World.setData(World.java:405)
    at org.bukkit.craftbukkit.block.CraftBlock.setData(CraftBlock.java:72)
    at me.itsatacoshop247.TreeAssist.TreeAssistReplant.run(TreeAssistReplant
    .java:23)
    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)

    14:24:25 [INFO] This error is logged only once: it could have occurred multiple
    times by now.
    14:24:25 [INFO] Please contact one of the authors of plugin 'TreeAssist': itsata
    coshop247

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  22. Offline

    ice131

    GREAT PLUGIN
    THANKS
     
  23. I'd like to see support for MCMMO so you get XP for the whole tree and not just 1 log XD
    also an option for all leaves to "decay" once the tree is cut down would be nice (look at the single player mod: Treecapitator)
     
  24. Offline

    ProGamersUK666

    Love This Plugin :p
     
  25. Offline

    Jungle_Law

    Ayo! This plugin is quite nice... But! What would be even nicer?!

    If you did implement that Factions/Towny etc... You mentioned in the newest update...

    I did test it... And it does'nt work... Whether I have permissions on or off... Whatever... I'm running a Factions Server ! < Cuz its a godly Plugin !

    AND PLEASE IM DOWN ON MY KNEES!

    I'm so sick of running around choppin down peoples leftovers... Now I'm no programmer, but may I suggest a Factions/Towny (whatever your gonna support) checking before actually destroying the tree..?

    That would be AWESOME!

    Just increase the XP by a multiplier of 5... And youll be alright!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  26. Offline

    Yagman5000

    I'm just wondering, is there any way to configure it so that you cut down the tree normally, but the only difference is that it just automatically plants a sapling there once you finish? And it takes the normal amount of time for it to re-grow? I dont want the tree to be insta-cut, or insta-respawn. Just so that it'll re-plant a sapling once it's cut down. Thanks !
     
  27. Offline

    itsatacoshop247

    Note: I don't check bukkit.org as often as it doesn't properly alert me of new replies, go do BukkitDev to get me ASAP.

    Issue fixed in next version, check back soon.
    I'll look into mcMMO and am working on some better leaf decay (I have a rough version of it right now).
    I think I found an issue, I'll be testing it tonight, although in theory it should have been working :/

    Yeah! See the example config. You'll want to turn Auto Tree Destruction and some other features off.

    Version 4.1
    • Added a command to reload the config file ('/treeassist reload' with permissions 'treeassist.reload')
    • Large Jungle Trees will now plant all 4 saplings at the base
    • Removed TA alias for commands due to plugin conflicts
    • Fixed NoLagg/BlockPhysicsError Message
    • Fix to "Bottom Block Must be broken first" (wasn't replanting right on false)
    • Fixed block data of non-tools changing when breaking a tree
    • Fixed tool damage not being applied correctly to some tree types
    • Made Fast Leaf Decay a tad more aggressive in removing leaves.
    Download here!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  28. Offline

    savanik

    Hey guys, running 1.2.5-R1.3 and TreeAssist 4.1 - when anyone chops a base block, the plugin works to full effect, but they get kicked off the server due to a NullPointerException and have to rejoin to pick up the blocks.

    Log:
    Code:
    14:05:22 [INFO] This server is running CraftBukkit version git-Bukkit-jenkins-CraftBukkit-93 (MC: 1.2.5) (Implementing API version 1.2.5-R1.3-MCPC-SNAPSHOT)
    ...
    14:05:25 [INFO] [TreeAssist] Enabling TreeAssist v4.1
    ...
    14:09:01 [WARNING] Failed to handle packet: java.lang.NullPointerException
    java.lang.NullPointerException
            at net.minecraft.server.ItemInWorldManager.breakBlock(ItemInWorldManager.java:249)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:179)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:594)
            at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:234)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:121)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:556)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:453)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    
     
  29. Offline

    itsatacoshop247

    List of other plugins you use?
     
  30. Offline

    Jungle_Law

    Alright man - hope you get this working with Factions XD
     
  31. Offline

    milkymilkway

    You should add it to where it protects the block underneath the sapling!
     

Share This Page