Added in the config section for Scraped blocks. The config file should auto update adding/defaulting the new config properties. You will see some messages in the console about the auto conversion adding the new sections.
Added support for 1.17.
Added a new statistic for removing oxidation from Copper blocks to the Axe.
Adjusted the valid blocks for the making path stat.
Adjusted the valid blocks for the tilling stat.
Adjusted the valid blocks for the harvested stat.
I now only register the listeners for the sections you have enabled in the config. Using the reload command will register listeners as well. This will help save a bit of unnecessary processing (albeit a small amount). Note disabling a section and running the reload will not unregister any listeners, in that case you will want to restart the server if you want the listeners disabled.
When you craft an item in the players inventory or in a crafting table I will merge the stats the same as the anvil. The permissions for this will utilize the same anvil permissions/config settings.
Added 2 new commands (with new permissions to both). LoreList for displaying the lore on your item in chat along with the line numbers for each lore item. LoreRemove for removing a line of lore on your item. This is intended to help you cleanup any lore lines you no longer want on your item. Both commands are defaulted to OP permissions only.
Players with the simpletoolstats.update.notify (Default OP) permission will now get notified when signing into your server about a new update being available to this plugin. They will only get notified once per server restart.
I know that frequent plugin update notifications can get annoying so I enhanced my update notifications with a new setting in the config allowing you to specify which types of updates you want to receive. This will allow me to update the plugin with minor updates without everyone being notified. By default it will only notify you about Major updates and bug fix updates. Updates that only provide minor changes will be ignored. See the config file for information about the types of updates.
Added option to format stat numbers comma separated (Off by default) ex: "Destroyed blocks: 55,412". It will auto convert to the desired setting on/off the next time you use the item or when you merge the item through the anvil.
Added in a validation error for when the text node is invalid. I now check for a blank config node as well as any colons in the text. Both scenarios would cause the plugin issues. For now I am just showing a message in the log but in a later release I will change it to disable the plugin.
Added support for any custom mob that fills in the customMobName. MythicMobs was tested but other custom mob plugins may work if they function similarly to MythicMobs. I allow you to configure a global custom mob stat with an optional prefxFilter to catch any custom mob otherwise I give you 10 custom mob sections to configure. See the config file documentation for more information on setting up stats for custom mobs.
Added Killed bosses stat line for Ender Dragon and Wither bosses.
Added hex support in the config as well as color codes. I am a bit concerned about the potential for performance issues for the hex lookup so I added a config to disable this. I couldnt detect any noticeable lag but I do not have access to a server with a large amount of players to properly test that. Just something to keep in the back of your mind if you notice any new performance hits. Disabling hex in the config and running the "/simpletoolstats reload" command will take care of it if you have issues. I am planning on implementing some form of performance tracker based around this and giving it as debug option in the config or a command.
Major overhaul of the anvil stat merging mechanism to help with changing your config colors. I tried to explain it in the Overview page but I tried to give you a way to update your items seamlessly without needing to utilize any commands since commands are not user friendly.
Added shears stats. This works for everything except beehives/beenests, this might be an issue in the spigot api but I was never able to get information in my plugin when you shear them. I even implementing code to add stats to your shears when you utilize an automatics sheep farmer. The plugin will set stats on the shears inside the dispenser.
Resolved issue with protected objects counting stats even when you are not allowed to break the item. My code no longer fires when another plugin cancels the event such as the "BreakBlock" event. Hopefully this will end up giving support for all protection based plugins but let me know if you notice any issues.
Resolved update notification again. It turns out spigots web API is completely unreliable for returning the version so I now make 3 different URL calls with 3 different number of slashes at the end of the URL and use the largest returned value for my alert. I will have to look into an alternate method for this down the road.
Implemented logic to help me update your config.yml files while preserving all your custom settings as well as my comments. Again please let me know if you notice any issues. It will save a backup named config.yml.old when it does the upgrade.
Hotfix to resolve issue with the update check. For some reason the version never update on the Spigot API so I added in a check to not put a notification in the console when your version is greater than the one returned from the Spigot API.
Stat merging - When you combine two items in an Anvil the stats of the two items will now be merged. If the item's stat line was using ToolStats format I convert the format to my format. If you wish to preserve the ToolStats format then do not combine the item with another item containing stats.
Swords - Added "Destroyed webs".
Shovels - Added "Created paths". (Right click grass block)
Hoe - Added "Harvested blocks". Tracks blocks broken that are best broken by the hoe such as Leaves, Wart blocks, Shroomlight, Hay Bale, Target, Dried Kelp Block, Sponges and Leaves. Gamepedia refers to this action as "Harvesting" so that is the wording I decided to use.
The next update will include Permissions, Config and Commands.
Added Hoe till statistic.
Added logic to prevent stat lines from being added to items that are stackable (ie Kill a chicken while holding a single dirt block).