Lumberjack Revived
Use one of the axes in the game to cut down the bottom block of a tree, and the rest of the tree will be destroyed as well. Will be updating as I add more to the plugin. Very basic right now. Open to suggestions.
-----
Requirements for activating the event:
- One of the 5 default axes must be used
- The block broken must be a log
- The block below the target log must be dirt or grass
The Lumberjack effect can be turned on and off using "/lumberjack"
-----
Permissions:
- lumberjack.toggle <- Gives access to the /lumberjack command
-----
To-Do List:
- Add axe damage support
- Remove hard coded axe list and read axe list from config instead
- Add ability to destroy attached leaves
- Figure out why the /reload command causes the plugin to break down for users on the server
- Most likely related to the player not having an "onJoin" entry in the HashMap when the server reloads and the old HashMap is dumped
- Add config option to auto-plant a sapling where the tree was
- Split plugin into multiple class files for organizational purposes
- Check if logs are attached to leaves with decay data. Refuse to cut down whole tree if they're not.
-----
Source Code: https://github.com/ASchneider-GitHub/Lumberjack
-
View User Profile
-
Send Message
Posted Jun 14, 2020If I don’t need to give players access to the ‘toggle’ function, will the plugin still work without any permissions plugin or code added to the bukkit permissions.yml?
-
View User Profile
-
Send Message
Posted Sep 23, 2019how do i set/ make the permissions
-
View User Profile
-
Send Message
Posted Nov 12, 2019In reply to Forge_User_92619138:
You can give the player access to the command with the permission node lumberjack.toggle. Players without the permission node won't be able to use the command. If you don't have a permissions managing plugin, you can still give all players access to it by adding the node to the Bukkit permissions.yml file and setting it as the default class. An example of what you put in the permissions.yml is below.