[INACTIVE][MECH/SEC]AutoPlant v1.60 - Keep forests alive! CB[740] - CB[440]

Discussion in 'Inactive/Unsupported Plugins' started by Hawox, Mar 3, 2011.

  1. Offline

    Hawox

    AutoPlant - Keep forests alive!
    Versions and Downloads
    (May need to scroll)

    Source:
    https://github.com/Hawox/AutoPlant

    Are your forests disappearing over night? Are your new players having to travel for days on end to find a tree to even start playing? Sick of having to replant all those burned down forests everyday? Then this is for you!

    This is a very simple plugin that automatically plants a sapling when a log is broken(or burned) on top of dirt. It keeps forests planted with no effort on anyone's end at all! I've been using it on a server I use to work on for quite sometime and there are still trees everywhere around spawn. Yes is creates extra saplings into the system but since when have they been all that valuable?

    To put it simply. This plugin simulates everyone on your server being kind, caring, and considerate to the other players while still allowing them to be lazy!

    There is a config file that should be made when the plugin is first ran (it's also included in the .zip) that you can modify. It looks like this:

    Code:
    #Delay from log break to the sapling being planted (in milliseconds)
    Plant_Delay: 1000
    #How long the sapling is protected after this plugin plants it (in milliseconds)
    Protect_Time: 1000
    
    #When true the plugin will autoplant a burning log
    Replant_Burned_Tree: true
    
    #If these are true the the text in the variables below will be shown
    Tell_User_Planting: false
    Tell_User_Protected: true
    
    #The message that is sent to the player when a sapling is added to the play queue
    Being_Planted_Text: A new sapling will arrive in one moment
    #The message that is sent to the player when they try to break the recently planted/protected sapling
    Protected_Text: This sapling is protected from jerks like you!
    
    

    Features:
    • Auto plants a saplings when people harvest trees or when the tree is burned down.
    • Protects these saplings for a time after they are planted.
    • Also protects the dirt the sapling is on!
    • Can send a small message to the player so they know a sapling is coming or that a sapling is protected.
    • All of the above can be changed/modified in the config.yml file.
    Changelog:

    Version 1.60
    • Correct sapling type (birch etc.) will be planted when a log is broken.
    Version 1.53
    • Material under the sapling is now protected as well.
    Version 1.51
    • Updated for 670
    Version 1.50
    • Huge rewrite.
    • Moved config to yml
    • Config auto creates itself.
    • Text messages added.
    • Trees replant when burned down.
    • Added sapling protection.
    • Assured that there is no memory leak on my end and there never was one.
    Version 1.03

    • Changed up the timer system.
    Version 1.02

    • Renamed config file
    • Moved config file to better match plugin name
    Version 1.01

    • Removed .bukkit namespace
    Version 1.0

    • Finally made the message optional as it can get annoying when cutting down forests.
    • Plugin released.
    This was the first plugin I made for hMod way back in the day and I just never got around to releasing my plugins. I hope to get my more advanced plugins up here onto the forums in the next few days. Keep an eye out!
     
  2. Offline

    alnef

    Nice plugin but it tel me...
    Code:
    19:35:44 [SEVERE] Could not pass event BLOCK_BREAK to AutoPlant
    java.lang.IllegalAccessError: hawox/treeplanter/TreePlanterBlockListener$1
        at hawox.treeplanter.TreePlanterBlockListener.PlantMe(TreePlanterBlockListener.java:78)
        at hawox.treeplanter.TreePlanterBlockListener.onBlockBreak(TreePlanterBlockListener.java:34)
        at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.java:392)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:157)
        at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:389)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
     
  3. Offline

    o0AzzA0o

    Cheeky feature request..... is it possible to protect the dirt block under the sapling for the same amount of time as the sapling? some nasty tree killing players just distroy the dirt block under it
     
  4. Offline

    Wall

    cool plugin works great on my tree farm :) works whit CB 677
     
  5. Offline

    Hawox

    @o0AzzA0o Can do! Damn those devious users!

    @Wall Thanks! Changing topic title then.

    @o0AzzA0o Got around to it!
    Version 1.53
    • Material under the sapling is now protected as well.

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

    maguschala

    With the addition of pine and birch saplings in 1.5, it would be nice to see those saplings replace their respective tree types, if possible! :)
     
  7. Offline

    Hawox

    Oh are there? I didn't know! I have not tried the update yet. I can do that!
     
  8. Offline

    SmokedPig

    Works with 684 only messages don't appear. Great plugin!
     
  9. Offline

    Hawox

    Odd, a few have said that but I thought it worked. I'll see what I can do. I'm only going to update it when I take the time to get the different types of saplings. That will be after uQuests update.

    EDIT: Did you remember to turn it on in the config? It works for me.

    Version 1.60 Release
    • Correct sapling type (birch etc.) will be planted when a log is broken.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  10. version 1.6 still reports v1.53 in the server log on load. Forgot to update it?
     
  11. Offline

    Empoleon416

    Heaps of my buildings have just disappeared for no reason. I have a slight thought it might have been caused by your plugin. they were all made of wood and wooden planks, and some have been replaced with leaves and trees.

    Yup, its a bug im sure. one of my buildings is constructed out of wood, and it has been FULLY replaced by saplings.

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

    o0AzzA0o

    nice one thanks :)

    i get this with 1.60 ......... when i revert to 1.53 its fine again........ im using 1.53 on bukkit 709 and its stable


    1.60 log

    05:07:54 [SEVERE] Block Data:0
    05:07:55 [SEVERE] Block Data:0
    05:07:55 [SEVERE] Block Data:0
    05:07:56 [SEVERE] Block Data:0
    05:07:56 [SEVERE] Block Data:0
    05:07:57 [SEVERE] Block Data:0
    05:07:57 [SEVERE] Block Data:0
    05:07:57 [SEVERE] Block Data:3
    05:07:58 [SEVERE] Block Data:0
    05:07:58 [SEVERE] Block Data:0
    05:07:58 [SEVERE] Block Data:5
    05:07:59 [SEVERE] Block Data:0
    05:07:59 [SEVERE] Block Data:0
    05:07:59 [SEVERE] Block Data:5
    05:07:59 [SEVERE] Block Data:5
     
  13. Offline

    Hawox

    :confused: This is very bad. I'll see what happened.
     
    o0AzzA0o likes this.
  14. Offline

    Phaedrus

    [SEVERE] Block Data:0 Happens with 1.6 and bukkit 684 as well.
     
  15. yes happens for me too
     
  16. Offline

    o0AzzA0o

    anyone tried with 720?
     
  17. Offline

    anonymous

    So is this plugin not-safe atm?
     
  18. Offline

    Phaedrus

    I can't use it atm, my log file would be massive after a day of those error msgs. :(
     
  19. Offline

    Hawox

    Oh whoops I uploaded the wrong file last time. Redownload to fix the block id spam.
    @Empoleon416 I'll bet those houses got burned down somehow. This plugin replaces logs that are on top of grass/dirt with saplings when they are burned/broken.
     
  20. I hadn't had the problem, but it is checking for unrefined wood and not planks right?
     
  21. Offline

    Hawox

    Yes. So if his planks vanished I'm assuming the house burned down.
     
  22. Offline

    habbah

    Awesome plugin ty!
     
  23. Offline

    thedjshow

    you should update this plugin i get this spam:

    > 14:42:28 [SEVERE] Block Data:7
    > 14:42:27 [SEVERE] Block Data:7
    > 14:42:27 [SEVERE] Block Data:7
    > 14:42:27 [SEVERE] Block Data:7
    > 14:42:23 [SEVERE] Block Data:7
    > 14:42:22 [SEVERE] Block Data:7
    > 14:42:22 [SEVERE] Block Data:7
    > 14:42:22 [SEVERE] Block Data:7
    > 14:42:21 [SEVERE] Block Data:7
    > 14:42:21 [SEVERE] Block Data:7
    > 14:42:21 [SEVERE] Block Data:7
    > 14:42:21 [SEVERE] Block Data:7
     
  24. Offline

    Hawox

    Which download are you using? The new one should not do that.
     
  25. Offline

    1994mat

    flowers plox?
     
  26. Offline

    Hawox

    Not my plugin. Other plugins have regrowing flowers. Besides, if I made it replant flowers in the same places, dyes would be worthless with the flower farming people would do.
     
  27. Offline

    MonsieurApple

    Thanks sir. Great job.
     
  28. Offline

    Bjourk

    Is this tested on 740 yet?
     
  29. Offline

    Hawox

    Oh yes, let me update that. Sorry x.x
     
  30. Offline

    zlipperypete

    Any chance you'll update it to remove the "Block data:0" spam in the server console?
     
  31. Offline

    Hawox

    I did that a forever ago? :confused:
     

Share This Page