Cristichi's Tree Capitator
Updated to 1.19
The latest build works for 1.19, 1.18.*, 1.17.*, 1.16.*, 1.15.*, 1.14.* and 1.13.*. I recommend using the latest build always in servers running on those Minecraft versions. Keep an eye on 1.19! I'm also still around so please leave your suggestions here if you want to, I'll surely read them.
Thank you for the 114k downloads!
This is crazy! Thank you so, so much for all. I hope the plugin is serving you well and don't hesitate to ask. Remember the objective of this plugin is to make wood way easier and faster to make.
Features (some of them may be available for the latest builds only, so keep it updated!)
- Let users destroy trees by breaking only 1 log. Even the biggest tree will fall!
- Works on nether trees (+1.16).
- Auto-update. You don't need to come back here to download the plugin again when new features come out.
- Also destroys all leaves around.
- Auto-replant. Replanted saplings can also be automatically protected so they cannot be broken until they grow a tree.
- Switch on/off if an axe is required and/or damaged.
- VIP mode. Use it to restrict access to the benefits of this plugin, for premium users for example.
- Each player can toggle on/off the plugin for himself. Choose if you want a message to remind players when they log in.
- Players are not able to break trees in protected areas (by WorldGuard and most other protection plugins), even if they try to break a log block that is outside in order to break log blocks inside the protected area.
- Axes are damaged accordingly.
- Switch on/off if axes should be prevented from being broken.
- Switch on/off if tree leaves should be ignored by the plugin. Enabling it will make the plugin take down only connected logs, reducing the lag and balancing a little bit.
- Ask for new features by DM or this page! I'll try to answer and consider every suggestion.
Commands (some of them may be available for the latest builds only)
- /tc help: Lists all commands.
- /tc toggle: Toggles the plugin for you. Just in case you made your home using lots of logs.
- /tc update: Checks for new updates, and updates if able.
- /tc reload: Reload config.yml changes.
- /tc setLimit<number>: Sets the limit of blocks this plugin can destroy at once. (-1 for unbounded)
- /tc setReplant <true/false>: Sets if trees should be replanted.
- /tc setInvincibleReplant <true/false>: Sets if replanted saplings should be unbreakable by survival players.
- /tc setAxeNeeded <true/false>: Sets if an axe is required for the plugin to work.
- /tc setDamageAxe <true/false>: Sets if the axe used is damage (only takes place if an axe is needed).
- /tc setBreakAxe <true/false>: Sets if the axe used can be broken (only takes place if an axe is needed and damaged).
- /tc setVipMode <true/false>: Sets if vip mode is on.
- /tc setNetherTrees <true/false>: Sets if the plugin works on the new nether "trees".
- /tc setStartActivated: Sets if this plugin is activated for players when they enter the server. If false, players will need to use /tc toggle to activate it for themselves.
- /tc setJoinMsg: Enables or disables the join message that remind players about /tc toggle.
- /tc setIgnoreLeaves: Makes the plugin ignore or not the leaves aroung logs.
Permission nodes
- cristreecapitator.user: Always required to take down trees fast.
- cristreecapitator.admin: Required to change options by commands.
- cristreecapitator.vip: Required to take down trees fast when Vip Mode is enabled.
How to Install
- Place downloaded .jar file into YourServerDirectory/plugins/
- Start or reload server
- Then you may configure the plugin just the way you want, using either commands or editing the config file, then typing /tc reload on chat (with cristreecapitator.admin permission or OP) or in the server console.
How to use VIP mode
- Enable vip mode (/tc setVipMode true).
- Give 'cristreecapitator.vip' permission node to VIP players.
- It's already done! VIP players will be the only ones allowed to cut down trees faster! Don't worry, average players can still get wood, but the vanilla way.
If your server is not running 1.13.*, 1.14.*, 1.15.*, 1.16.*, 1.17.* or 1.18.*, please click here to download v3.0.1 instead. It won't have all the advantages and performance of the latest version so please consider updating to at least 1.13 to use the best version of this plugin.
In reply to Cristichi:
Sorry i meant cristreecapitator.user
How i give that permission for survival players in my server?
And thank you for reply
In reply to raicky1197:
Np. If you use a certain plugin to manage permissions, look for it's documentation. If not, read this article https://bukkit.gamepedia.com/Permissions.yml
It explains the basics for permissions. Good luck!
Hi!! Thank you for your nice plugin. But sometime I want to disable it when I build a house made of log wood. Do you have any command to do it ? or, could you add this feature?
Thanks :)
P.S. I want the feature like below.
enter "/tc on" to enable this plugin, or "/tc off" to disable it.
In reply to gaojie429:
Maybe if I can pick some time from my day I'll work on how to do it. Thanks for commenting it :3
In reply to Cristichi:
You could make the plugin check if there are leaves to confirm that it's a tree, and add the option to config the minimum amount of leaves for the plugin to consider it a tree
This is more of a suggestion but is it possible to add in the plugin that it takes longer to break the tree as an option. For example I would like my players to chop down a tree easily without adventuring into the depths of the branches but not destroy the tree as quick as normal or whole forests could be ruined in seconds (Yes I know about the auto-replant which is awesome but this would be a nice option to start with)
In reply to Forge_User_36155732:
As a side note too I only seem to be getting this error popup in console whenever I'm trying to break a tree as a member with the permission
28.05 02:15:34 [Server] ERROR Could not pass event BlockBreakEvent to CrisTreeCapitator v5.5
28.05 02:15:34 [Server] INFO org.bukkit.event.EventException: null
28.05 02:15:34 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:290) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:217) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:889) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:40) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:10) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_211]
28.05 02:15:34 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_211]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]
28.05 02:15:34 [Server] INFO Caused by: java.lang.NoSuchMethodError: org.bukkit.block.Block.getBlockData()Lorg/bukkit/block/data/BlockData;
28.05 02:15:34 [Server] INFO at main.TreeCapitator.onBlockBreak(TreeCapitator.java:120) ~[CrisTreeCapitator.jar:?]
28.05 02:15:34 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
28.05 02:15:34 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
28.05 02:15:34 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
28.05 02:15:34 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
28.05 02:15:34 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot131.jar:git-Spigot-7754231-94b0980]
28.05 02:15:34 [Server] INFO ... 17 more
In reply to Forge_User_36155732:
I also though about that. I didn't think of a perfect solution, but try setting the limit of blocks to something like 5 or 10. It will take longer and you will have more control of what you break, but of course there must be a better one.
Also, thanks for commenting it :3
In reply to Forge_User_36155732:
Check in the files page if the plugin version you have supports your server's current minecraft version.
In reply to Cristichi:
That sounds like a good bodge for now until something like that can be implemented. It guess it will still cause players to have to go up a big tree but it still wont make it so bad. Thanks for the response and for the fix of my error, didn't realise there were different versions. Fixed perfectly fine!
Hello. Thank you for your plugin.
Could add ability for plugin funcionality that it's only work for trees and not for all log blocks? When i build wall using log block and then destroy it with axes all wall destroyed. I think in this case it's should work as in original game. Thank you.
In reply to dark_diesel:
If there is any way to identify a log block as part of a tree I don't know it. But thanks for commenting, if I think of any way to do it I'll update it.
Whenever I attempt to turn off Invincible Replanting with the command "/tc setInvincibleReplanting" get an error message saying the command wasn't found.
In reply to Prectriv:
It's replant not replanting and also says it's not implemented yet
I would love to use this plugin but I am held back by the fact that any axe used cuts down the whole tree, and not just one type of axe. I am looking for a new tree cutting plugin other than the outdated Timber one and this one would be the best replacement if it had that.
Every time I edit the config for the plugin the config resets itself and I can't figure out why, even after trying to set the config to read only
In reply to NoahCouTwitch:
Does it change the config file back to default or do changes not apply to the plugin? Also, check every line to be written properly so the plugin can recognize it
In reply to Cristichi:
I changed the protect sapling thing to false and then save it and reload and the config gets set back to true
In reply to NoahCouTwitch:
Thanks for reporting! I'm fixing it right now and I'll upload it as soon as possible.
In reply to Cristichi:
Confirmed. THe same issue for me. Config reset options every time when i restart server.