Tool Stats
Tool Stats

Overview
This plugin keeps track of and shows you statistics for each tool you craft/use. Using item lore, it'll show you how much of each block you've destroyed, or it'll keep track of how many creatures you've killed with your sword. Wanna know of many blocks you've hoed? It keeps track of that too!
Features
- Tracks Blocks Mined/Dug/Hoed/Chopped With Your Tools
- Tracks Sword And Bow Kills
- Displays Each Tool's Statistics In Its Lore
- Select Which Tools You Want To Be Tracked
- Customize The Color Of The Stats
- Permissions
New To Version 2.0
- Customize What Blocks Are Tracked
- Customize What Mobs Are Tracked
- Now Works With Any Plugin That Modifies Lore!
Config Breakdown
After putting the .jar file in your plugins folder a config file will be created. Inside the config you'll see 2 sections, General And Tools. Remember to delete your old config file when updating!
Tools
Each tool has 3 options: Color, Track Stats, and Block Ids. Color determines what color and effect the statistics will have. Track Stats determines whether or not ToolStats tracks that type of tool. Block Ids is a list of the block ids that are tracked for each type of tool.
Colors
There are 7 different color settings, one for each tool, and a universal option.
When you first open the config the universal setting will be filled out with 5;o. The 5 means the color is purple, the o means letters are Italicized. To pick a color you simply select the number that represents your color of choice and the replace 5;o with that number. If you want to add effects such as bold, you add a colon (;) after your first number, then you add the letter that represents your effect of choice.
The numbers and letters representing colors and effects can be found in the following image:

Block Ids and Mob Ids
Each tool type contains a list of ids that determines what statistics are kept track of. For weapons the list contains mob ids, for the other tool types block ids.
By default each list is filled out with a basic set of blocks and mobs. To keep track of how many oak logs you've chopped you would put 17 on the list under Axe. For blocks with special data types (e.g. black wool (35;15) or brick slabs (44;4)) such as a spruce log, 17;1, you enter the id, 17, first, followed by a semi-colon (;) and then the data type, 1. The Bow and Sword lists contain mob ids that can be found below.
There are also 4 special options for the lists: miscellaneous, hostile, passive, and player. Miscellaneous is for the Block Ids lists. When set it tracks all blocks not already listed. Hostile, passive, and player are for the Mob Ids lists. When hostile is set it tracks all hostile mob kills, passive tracks all passive mob kills, and player tracks all player kills.
Minecraft block ids can be found here: http://minecraft.gamepedia.com/Data_values/Block_IDs
Mob Ids can be found in the following image:

General
There are two options in the General section of the config. One is "Delete Stats On Untracked Tools" and the other is "Use Universal Color".
If you set "Delete Stats On Untracked Tools" to true, all of the saved statistics for tools that have the "Track Stats" option set to false will be deleted when the tool is next used.
The "Use Universal Color" option is used to determine whether or not to use the universal color. When set to true, all stats for all tools will be the universal color. When set to false, each tool will use its own individual set color.
Permissions
Note: All ToolStats permissions (excluding toolstats.*) are set to true by default. If you don't what someone to have a specific tool type tracked you will have to disable that specific permission. To disable all tools you only have to disable toolstats.*

Media







-
View User Profile
-
Send Message
Posted Feb 28, 2013Will there ever be stats for armor too? :)
-
View User Profile
-
Send Message
Posted Feb 26, 2013@Steelsouls
Good Idea, I'm adding it in right now. It should be updated in at most two days.
ATM I'm making it so you can have one overall color for everything. Should I narrow it down and allow different colors per tool?
Edit: Wow this is a lot more work then I thought. So far I have swords working, but if you change the color then restart the server and use a sword with the previous color you get an error.
Edit #2: I know no one is reading this, but eh, it's fun to pretend. Finished swords completely, error free. I'll do the rest tomorrow/the next day. Expect an update soon: http://i.imgur.com/WR8ebRL.png
-
View User Profile
-
Send Message
Posted Feb 23, 2013@SmokyMiner
Would it be possible to allow a color-code option in the config to change the text color of stats? If so would you mind adding that in a future update?
-
View User Profile
-
Send Message
Posted Feb 4, 2013@Steelsouls
Glad to here you like it, you'd be surprised how encouraging a comment like this is.
-
View User Profile
-
Send Message
Posted Feb 4, 2013Just wanted to come back and say this plugin is working perfectly. My players are loving it so far. Thanks for your work!
-
View User Profile
-
Send Message
Posted Jan 28, 2013@Steelsouls @SwiftSwamp
It saves per tool, hence Tool Stats, not Player Stats. You must be holding the tool to see it's stats. Naming still works, it doesn't interfere with the naming system at all really.
-
View User Profile
-
Send Message
Posted Jan 28, 2013I'm curious about this too. I think it saves per specific tool though since you can name a specific tool. I think it uses the same type of data saving.
What I want to know is can this work with a named item? I love naming items on the anvil and I don't want to give that up.
-
View User Profile
-
Send Message
Posted Jan 28, 2013Does it just show it for the player with anything they hold or does it store per tool?