slipcor / treeassist Goto Github PK
View Code? Open in Web Editor NEWThis project forked from friendlybaron/treeassist
Home Page: https://www.spigotmc.org/resources/treeassist.67436/
License: GNU General Public License v3.0
This project forked from friendlybaron/treeassist
Home Page: https://www.spigotmc.org/resources/treeassist.67436/
License: GNU General Public License v3.0
This is my config
Dropped: Active: true Probability: 100 Delay Ticks: 100 Enforce: false Force Protect: true Material: minecraft:air Requires Tools: true Only When Bottom Block Broken First: false When Tree Burns Down: true Protect For Seconds: 60 Delay Growth Seconds: 240
If enable enforce protect, when i break a single sapling, it prints 2 times "You cannot break saplings in this server!"
And the sapling is not protected at all, it can be removed easily with an axe
TreeAssist version 7.0.112
git-Paper-134 (MC: 1.16.1)
Even tho my config file looks like this: https://pastebin.com/kZ94d5Jx
And the option for bottom log has to be broken first is set to false, TreeAssist still requires the bottom log to be broken for it to work.
I'm using the latest version of TreeAssist and it worked like intended and stopped working but the weird part is that this happened mid season of 1.13.2 without touching the plugin.
The list only get added to but never removed from.
I discovered this while writing up the documentation. Commands are the last thing to do, and I had a look into the code. Oups xD
while not as major as #3, commands are using a list instead of a map for command registry
This should be changed to a map, where you register the command object twice into the map, once for main, and once for short.
Then your command handler will be AbstractCommand command = commands.get(args[0].toLowerCase());
v6.0.72
If I cut down a tree with a wooden axe, it won't fall.
The other axes are working.
How to fix?
config.zip
1.12 is out for a while. Any plan on supporting it please?
[00:20:18 ERROR]: Could not pass event BlockBreakEvent to TreeAssist v5.10.36
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at net.minecraft.server.v1_12_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:289) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:216) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:882) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:40) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:10) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_131]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:747) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.lang.NullPointerException
at me.itsatacoshop247.TreeAssist.trees.SpruceTree.calculate(SpruceTree.java:28) ~[?:?]
at me.itsatacoshop247.TreeAssist.trees.BaseTree.removeLater(BaseTree.java:769) ~[?:?]
at me.itsatacoshop247.TreeAssist.trees.BaseTree.calculate(BaseTree.java:396) ~[?:?]
at me.itsatacoshop247.TreeAssist.TreeAssistBlockListener.onBlockBreak(TreeAssistBlockListener.java:159) ~[?:?]
at sun.reflect.GeneratedMethodAccessor351.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-survival.jar:git-Spigot-cd6ba67-a7d074c]
... 17 more
>version
[00:30:57 INFO]: This server is running CraftBukkit version git-Spigot-cd6ba67-a7d074c (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT)
[00:30:57 INFO]: Checking version, please wait...
[00:30:59 INFO]: You are 1 version(s) behind
Thank you for your effort!
can we have an option to disable replanting of the sapling if there is a non-air block where it will grow?
(i thought i suggested / reported this some days ago, but i may have gone crazy since i couldn't find my ticket about it lol)
Developer of EWG abandoned TreeFeller (addon for EWG). Can you add trees of EWG in TreeAssist? EWG use a lot of servers.
http://img10.lostpic.net/2016/09/14/b62feb65b012e2c2a1b4201c459fc2ab.png
http://img10.lostpic.net/2016/09/14/313e113be0b93921c7a1e1bb2ba33ad2.png
http://img10.lostpic.net/2016/09/14/1f39316cb6de399d33f1b723934a040a.png
I have jobs set to true in config, a player has let me know that basically the tree cutter job in jobs reborn, gives 90 cents per tree because it only gives money for one block of the tree rather than the whole tree.
The setting may be broken?
Just dropping this into this repo, the .52 one does not work with 1.13-pre7's and the latest build from another dev requires a lib plugin which I don't support so I'm stuck to 1.12.2 forever :(
Could not pass event BlockBreakEvent to TreeAssist v5.10.36 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:286) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PlayerInteractManager.a(PlayerInteractManager.java:215) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:602) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PacketPlayInBlockDig.a(SourceFile:40) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PacketPlayInBlockDig.a(SourceFile:10) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_101] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:748) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:320) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:686) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:589) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101] Caused by: java.lang.NoClassDefFoundError: org/bukkit/material/Sapling at me.itsatacoshop247.TreeAssist.trees.OakTree.replaceSapling(OakTree.java:221) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.OakTree.handleSaplingReplace(OakTree.java:182) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.BaseTree.maybeReplant(BaseTree.java:472) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.BaseTree.calculate(BaseTree.java:374) ~[?:?] at me.itsatacoshop247.TreeAssist.TreeAssistBlockListener.onBlockBreak(TreeAssistBlockListener.java:159) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] ... 16 more Caused by: java.lang.ClassNotFoundException: org.bukkit.material.Sapling at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101] at me.itsatacoshop247.TreeAssist.trees.OakTree.replaceSapling(OakTree.java:221) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.OakTree.handleSaplingReplace(OakTree.java:182) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.BaseTree.maybeReplant(BaseTree.java:472) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.BaseTree.calculate(BaseTree.java:374) ~[?:?] at me.itsatacoshop247.TreeAssist.TreeAssistBlockListener.onBlockBreak(TreeAssistBlockListener.java:159) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] ... 16 more [22:40:07 ERROR]: Could not pass event BlockBreakEvent to TreeAssist v5.10.36 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:286) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PlayerInteractManager.a(PlayerInteractManager.java:215) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:602) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PacketPlayInBlockDig.a(SourceFile:40) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PacketPlayInBlockDig.a(SourceFile:10) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_101] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_101] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:748) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:320) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:686) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:589) [spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101] Caused by: java.lang.NoClassDefFoundError: org/bukkit/material/Sapling at me.itsatacoshop247.TreeAssist.trees.OakTree.replaceSapling(OakTree.java:221) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.OakTree.handleSaplingReplace(OakTree.java:182) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.BaseTree.maybeReplant(BaseTree.java:472) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.BaseTree.calculate(BaseTree.java:374) ~[?:?] at me.itsatacoshop247.TreeAssist.TreeAssistBlockListener.onBlockBreak(TreeAssistBlockListener.java:159) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] ... 16 more Caused by: java.lang.ClassNotFoundException: org.bukkit.material.Sapling at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_101] at me.itsatacoshop247.TreeAssist.trees.OakTree.replaceSapling(OakTree.java:221) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.OakTree.handleSaplingReplace(OakTree.java:182) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.BaseTree.maybeReplant(BaseTree.java:472) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.BaseTree.calculate(BaseTree.java:374) ~[?:?] at me.itsatacoshop247.TreeAssist.TreeAssistBlockListener.onBlockBreak(TreeAssistBlockListener.java:159) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot.jar:git-PaperSpigot-9b05d00-33d5de3] ... 16 more
For some reason I can not get dropped saplings to replant at all. I've included my config file to be sure there isn't something obvious that I'm missing.
config.txt
Update: No idea why but apparently it's working now.
Plan?
Add one cooldown bypass permission for break tree
Sometimes, in my console starts a spam and a lag too.
Error:
[22:01:47] [Server thread/WARN]: [TreeAssist] Task #574135 for TreeAssist v5.10.36 generated an exception
java.lang.NoSuchMethodError: com.gmail.nossr50.config.experience.ExperienceConfig.getWoodcuttingTreeXP(Lorg/bukkit/TreeSpecies;)I
at me.itsatacoshop247.TreeAssist.core.Utils.mcMMOaddExp(Utils.java:530) ~[?:?]
at me.itsatacoshop247.TreeAssist.trees.BaseTree.breakBlock(BaseTree.java:544) ~[?:?]
at me.itsatacoshop247.TreeAssist.trees.BaseTree.access$000(BaseTree.java:24) ~[?:?]
at me.itsatacoshop247.TreeAssist.trees.BaseTree$1InstantRunner.run(BaseTree.java:878) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[server.jar:git-Spigot-8cbfc85-202da97]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353) [server.jar:git-Spigot-8cbfc85-202da97]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:738) [server.jar:git-Spigot-8cbfc85-202da97]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405) [server.jar:git-Spigot-8cbfc85-202da97]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678) [server.jar:git-Spigot-8cbfc85-202da97]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576) [server.jar:git-Spigot-8cbfc85-202da97]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
I have the latest mcmmo version at this moment + Spigot(latest) 1.12.
Please fix, love this plugin but it spams console and i can't see anything.
this tree i tried cutting down only got like, half cut down. it was a dark oak and part of it that didnt get cut down was naturally created above large ferns.
I found a bug I supposed. When I chop a bottom of a tree with my hand, of course it wont work. But I tried to use a diamond, it worked. The tree chopped down instantly as it would with a tool. I messed up my config? I dont think so. Here it is.
Tools:
Sapling Replant Require Tools: true
Tree Destruction Require Tools: true
Tools List:
Theres no diamond listed there. Only diamond axe. I tested with other stuff such as iron ingot, gold ingot, emerald for just to make sure. It doesnt work. Only diamond which Im kinda weird. Please fix this. Thanks!
[21:59:45] [Server thread/WARN]: [TreeAssist] Task #135533 for TreeAssist v5.10.18 generated an exception java.lang.NullPointerException at me.itsatacoshop247.TreeAssist.trees.BaseTree.breakBlock(BaseTree.java:538) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.BaseTree.access$000(BaseTree.java:24) ~[?:?] at me.itsatacoshop247.TreeAssist.trees.BaseTree$1CleanRunner.run(BaseTree.java:888) ~[?:?] at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot-1.10.2.jar:git-Spigot-a9631d2-67b2424] at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot-1.10.2.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:728) [spigot-1.10.2.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.10.2.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:673) [spigot-1.10.2.jar:git-Spigot-a9631d2-67b2424] at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:572) [spigot-1.10.2.jar:git-Spigot-a9631d2-67b2424] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Spigot version 1.10.2
https://i.gyazo.com/3054d5a96cb48c125269fd16fcd5d1c5.png
Add this to the config:
world-guard:
prevent-replant-in-all: true/false #If true, all WG regions will prevent sapling replanting
prevent-chop-in-all: true/false #If true, all WG regions will prevent auto tree chopping
Then maybe you could implement a custom WG flag like "treeassist-replant" and "treeassist-autochop". If both prevent-in-all toggles are set to false you can use flags to specify the behaviour for each region! 😄
I'm sorry I am using Google Translate because my English level is really not good enough....
i am PaperSpigot server (1.12)
When I cut a jungle tree from the time,Automatically cut trees , Did not start.
Background display
`OMG,i met a bug.
1.12 PaperSpigot server
[21:48:06] [Server thread/INFO]: [Yum] [Yum 事件监控] 插件 TreeAssist 处理 BlockBreakEvent 事件时发生异常!
[21:48:06] [Server thread/INFO]: [Yum] 异常名称: java.lang.NullPointerException
[21:48:06] [Server thread/INFO]: [Yum] 异常说明: null
[21:48:06] [Server thread/INFO]: [Yum] 简易错误信息如下:
[21:48:06] [Server thread/INFO]: [Yum] 位于 me.itsatacoshop247.TreeAssist.trees.wood.JungleBigTree.calculate(JungleBigTree.java:23)
[21:48:06] [Server thread/INFO]: [Yum] 位于 me.itsatacoshop247.TreeAssist.trees.AbstractGenericTree.removeLater(AbstractGenericTree.java:770)
[21:48:06] [Server thread/INFO]: [Yum] 位于 me.itsatacoshop247.TreeAssist.trees.AbstractGenericTree.calculate(AbstractGenericTree.java:399)
[21:48:06] [Server thread/INFO]: [Yum] 位于 me.itsatacoshop247.TreeAssist.TreeAssistBlockListener.onBlockBreak(TreeAssistBlockListener.java:146)
[21:48:06] [Server thread/INFO]: [Yum] 位于 com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor141.execute(未知:-1)`
The pom.xml doesn't work at maven...
It should :P check this!
Please fix, love this plugin but it spams console and i can't see anything.
Hi!
I want to set Ignore User Placed Blocks: true, but it's become false after server restart.
When you break a tree with any item that doesn't usually have durability, the item dissappears. Probably important information - the plugin is configured to 'tree assist' with every item you hold when you break a log not just axes.
OS: debian9 x64
server: paper-652.jar (paperspigot 1.13.2)
plugins:
AConomy
AntiCreeper
AuthMe
Coins
EliteMobs
EssentialsX
EXPBank
LockettePro
mcMMO
ProtocolLib
SkinsRestorer
QuickShop
TreeAssist
Vault
VeinMiner
Residence
WorldEdit
WorldGuard
--------------------------------------------errors---------------------------------------------
[00:08:39 ERROR]: Could not pass event LeavesDecayEvent to TreeAssist v6.0.77
java.lang.NullPointerException: null
at org.bukkit.craftbukkit.v1_13_R2.block.CraftBlock.itemCausesDrops(CraftBlock.java:531) ~[patched_1.13.2.jar:git-Paper-652]
at org.bukkit.craftbukkit.v1_13_R2.block.CraftBlock.breakNaturally(CraftBlock.java:550) ~[patched_1.13.2.jar:git-Paper-652]
at me.itsatacoshop247.TreeAssist.core.Utils.breakBlock(Utils.java:735) ~[?:?]
at me.itsatacoshop247.TreeAssist.core.Utils.breakBlock(Utils.java:708) ~[?:?]
at me.itsatacoshop247.TreeAssist.TreeAssistBlockListener.breakRadiusLeaves(TreeAssistBlockListener.java:243) ~[?:?]
at me.itsatacoshop247.TreeAssist.TreeAssistBlockListener.onLeavesDecay(TreeAssistBlockListener.java:54) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor672.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.13.2.jar:git-Paper-652]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.13.2.jar:git-Paper-652]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:66) ~[patched_1.13.2.jar:git-Paper-652]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:520) ~[patched_1.13.2.jar:git-Paper-652]
at net.minecraft.server.v1_13_R2.BlockLeaves.b(BlockLeaves.java:27) ~[patched_1.13.2.jar:git-Paper-652]
at net.minecraft.server.v1_13_R2.IBlockData.b(IBlockData.java:232) ~[patched_1.13.2.jar:git-Paper-652]
at net.minecraft.server.v1_13_R2.WorldServer.n_(WorldServer.java:552) ~[patched_1.13.2.jar:git-Paper-652]
at net.minecraft.server.v1_13_R2.WorldServer.doTick(WorldServer.java:301) ~[patched_1.13.2.jar:git-Paper-652]
at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1091) ~[patched_1.13.2.jar:git-Paper-652]
at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[patched_1.13.2.jar:git-Paper-652]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:940) ~[patched_1.13.2.jar:git-Paper-652]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:837) ~[patched_1.13.2.jar:git-Paper-652]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_232]
Slipcor,
Spigot 1.10.2
We are back to this issue, I am running the latest version of TreeAssist that you have on Spigot.
Spruce Saplings change to Oak Saplings when Blocked by anything using the command /treeassist forcegrow (radius)
Sidenote: I sent you a message on Spigot, don't know if you got it. If you have a later version not public yet. I would be happy to test again.
The night is dark and full of terrors, and https://github.com/slipcor/TreeAssist/blob/master/src/me/itsatacoshop247/TreeAssist/blocklists/FlatFileBlockList.java is the night.
This implementation suffers from massive performance problems.
Doing this will fix the scalability problems of the FlatFile system, and will be super easy to auto upgrade existing data files.
So, this is a thing i always loved in Minecraft servers. I got the inspiration in the good old days when plugin UberForest was still active and maintained.
Essentialy: make so that forests do spread over time
The difficult part: do not annoy players that want to be submmerged in the woods 😆 (and make it lag free)
What could you do is try to do something similar to what UberForest did: sometime, on a cycle, a tree has a chance to spawn a sapling nearby. This sapling has a chance to become a tree or an uber-tree (bigger tree, that has the ability to spawn more saplings).
Now: players would get instantly annoyed by this. Like as soon as they see the forest spread without any control over their claims. For this reason, saplings should not get replanted in claims, and near claims. The nearest a sapling is to a claimed land, the lowest is the chance for it to get planted. Inside claimed land, the chance is zero.
Also: forests should not over-populate themselves. A sapling should look how many saplings are around the location before getting planted. So that we don't have overcrowded forests (and prevents also overpopulation near claim borders over time). Each biome should have it's chances too. For example plains should have a very low chance.
Here comes the difficult part: this should happen in areas where there are actually less or no players. You might be tempted to do this in already loaded chunks, or in chunks that get loaded very often. That was the mistake that UberForest did back in the days! Essentially, the more a player stays in an area, the more this area goes out of control with forest spreading 😆 looking at this from a real-life perspective, makes no sense. And it's annoying for gameplay. All what i am suggesting, should happen in the areas that are less visited by players. Don't tell me how tho! That's magic. And should happen also asynchronously! Because it could lag everything down to death!
Is this challenging enough for you? lol
When chopping a tree and enabling the option to put it automatic in a person his/her inventory sometimes you get a broken texture because sideways logs don't have a texture.
I use latest build on jenkins
https://vgy.me/ZGsmGg.png
Hi there,
I want to use this plugin but I am running PermissionEx on my server. In only want to give permission to a few commands.
Thank you in advance :)
best regards,
Lord_of_Salts
The Silk Touch sometimes remove the leaves without giving the leaves (will still drop Saplings) (most of the time)
I would first like to point out that the help link doesn't work due to changes with Bukkit dev.
Secondly, the plugin appears to chop the trees down forcefully regardless of sneaking or not. I would like for players to 'fell trees' only while sneaking. I set it this way due to the issue of the tree coming down regardless of sneak.
Config on pastebin: https://pastebin.com/Mfpzutbf
Title explains everything for now I just added the tool myself in the config.
Paper 1.12.1 build 1183 https://ci.destroystokyo.com/job/PaperSpigot/
TreeAssist 5.11.48
I have switched to Paper since 1.12 due to mysterious lagging, dk if the original Spigot has the same issue.
[22:50:09 ERROR]: Could not pass event BlockBreakEvent to TreeAssist v5.11.48
org.bukkit.event.EventException: null
at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:46) ~[patched_1.12.1.jar:git-Paper-1183]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.12.1.jar:git-Paper-1183]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.12.1.jar:git-Paper-1183]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:514) ~[patched_1.12.1.jar:git-Paper-1183]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:499) ~[patched_1.12.1.jar:git-Paper-1183]
at net.minecraft.server.v1_12_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:290) ~[patched_1.12.1.jar:git-Paper-1183]
at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:217) ~[patched_1.12.1.jar:git-Paper-1183]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:886) ~[patched_1.12.1.jar:git-Paper-1183]
at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:40) ~[patched_1.12.1.jar:git-Paper-1183]
at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:10) ~[patched_1.12.1.jar:git-Paper-1183]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[patched_1.12.1.jar:git-Paper-1183]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_144]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_144]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [patched_1.12.1.jar:git-Paper-1183]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:843) [patched_1.12.1.jar:git-Paper-1183]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:424) [patched_1.12.1.jar:git-Paper-1183]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) [patched_1.12.1.jar:git-Paper-1183]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) [patched_1.12.1.jar:git-Paper-1183]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
Caused by: java.lang.NullPointerException
at me.itsatacoshop247.TreeAssist.trees.wood.JungleBigTree.calculate(JungleBigTree.java:23) ~[TreeAssist-5.11.48-CB1.12.jar:?]
at me.itsatacoshop247.TreeAssist.trees.AbstractGenericTree.removeLater(AbstractGenericTree.java:786) ~[TreeAssist-5.11.48-CB1.12.jar:?]
at me.itsatacoshop247.TreeAssist.trees.AbstractGenericTree.calculate(AbstractGenericTree.java:415) ~[TreeAssist-5.11.48-CB1.12.jar:?]
at me.itsatacoshop247.TreeAssist.TreeAssistBlockListener.onBlockBreak(TreeAssistBlockListener.java:146) ~[TreeAssist-5.11.48-CB1.12.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor632.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:44) ~[patched_1.12.1.jar:git-Paper-1183]
... 18 more
Hi !
This is my config for enabled world :
Worlds:
Enable world based restrictions
Restrict: true
Enabled Worlds:
I only want to activate the plugin on these 2 worlds but players can use it on all other worlds.
How to do ?
Is this a bug or a bad configuration?
Thank's in advance.
The above warning spams console when someone breaks a tree and the mcMMO option is enabled.
Check this timings report: https://timings.aikar.co/?id=9a54aa99688d487086719045151eac97#plugins
Could it be Treeassist? See plugins tab. It's marked as red. I am not sure because i am not a good timings reader :)
If you use a renamed or an enchanted axe auto wood removal do not work, neither sapling auto replant. Fast leaves decay works!
Try with silk touch, or with a simple renamed diamond axe, or with both.
git-Paper-236 (MC: 1.14.4)
TreeAssist version 6.0.77
At the moment server tracking is on by default and there is no tracker
entry in the config file either: one has to manually add tracker: false
. As this behaviour doesn't seem right to be the default, can you please add at least the explicit entry in the default config file?
Looks like that saplings dropped from leaves are not replanting, i think this started happening since last update (7.0.120) on paper 136 1.16.1
default.yml
The Dropped settings have to deal with automatically planting of sapling items, from throwing them and them dropping from leaves
Dropped:
Active: true
Probability: 100
Delay Ticks: 100
Testing this with a netherite axe on a spruce log tree.
I chop a log, the log gets replaced instantly, as if the tree was protected by a plugin like world guard.
Then, after the configured delay (default.yml) the tree starts chopping down itself. Only now, the tree can be actually broken with an axe.
7.0.120
Latest 1.16.1 papermc
Any sapling still has a 10% chance of being replanted after cutting down a tree, even with the auto replant setting disabled.
We'll have to see what applies here. block break? block collect? I forgot what exists- It will probably be configurable individually
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.