[3.1.0] Permissions, config commands, new method and lag reduction
[3.1.0] Quality of Life Update 2: This update includes permissions, commands that allow you to change the config in-game, a new method, and lag reduction code (should help when chopping large trees like jungle or dark oak trees).
The lag reduction shouldn't change things too much on the user side, except you'll notice the tree breaks down slower.
Permissions added are tg.operator and tg.user. You need tg.operator to access the new commands below. Server operators are given this permission by default. everyone on the server is given tg.user by default, and it allows them to use the /tg commands.
New commands mostly allow you to change configuration settings from within the game. Also, there is a command to reload the plugin by itself, so no need to reload the whole server when you're playing around with config settings. When you use one of the commands to change a config setting, the plugin automatically reloads to update the config file. New commands include:
/tg reload
/tgconfig [enable, disable]
/tgconfig set type [1, 2, 3]
/tgconfig set fairdurability [true, false]
/tgconfig set durabilitymultiplier [w/in 0.5 - 3.0]
/tgconfig tools add [any ONE tool]
/tgconfig tools remove [any ONE tool]
New method is called Lumberjack Natural, so now there are 3 available methods. In the config file they are changed by changing tgType: 1 = Lumberjack Classic, 2 = Gravity, and 3 = Lumberjack Natural.
Lumberjack Classic drops the logs from a tree in an itemstack for the player, and replaces each log with air.
Gravity has logs fall like sand/gravel if a log is broken below it.
The new method Lumberjack Natural, is the same lumberjack function where you hit one log and the entire tree falls down. However, each log breaks naturally, so the logs drop in no uniform fashion since each one drops its item separately from others around it.
Let me know if you find ANY bugs or issues!!! Easiest way is to post on the discussion page! Thanks!