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 Mar 9, 2013@smokyminer
Can you have this work with the RPGItems plugin? Try and make it so that it pops up below the RPG Item instead of replacing it altogether? This may work with a simple adding of strings, not sure exactly how it works though.
-
View User Profile
-
Send Message
Posted Mar 9, 2013@NyanCraftDe
It might not of been, it takes them time to review the new versions before they let me release them, it should be up now, v1.1.1
-
View User Profile
-
Send Message
Posted Mar 9, 2013@SmokyMiner
Okay, new version not up yet?
-
View User Profile
-
Send Message
Posted Mar 9, 2013@SmokyMiner
Awesome! I'll test it in a minute.
-
View User Profile
-
Send Message
Posted Mar 7, 2013@NyanCraftDe
Yea, I've pretty much narrowed it down to being a problem with Linux and the character "ยง". I've been working on fixing it since the problem was found, it's a bit hard to test though, without having a Linux system. follet2004s been kind enough to test attempted fixes for me, but as of right now, no luck.
EDIT: FINALLY, fixed the Linux issue!
-
View User Profile
-
Send Message
Posted Mar 7, 2013@SmokyMiner Got this problem without changing my config. Server is running Linux Debian 6.0.
-
View User Profile
-
Send Message
Posted Mar 5, 2013Thanks for the quick reply, I will try it out. ;)
-
View User Profile
-
Send Message
Posted Mar 5, 2013@MazeAsh
I haven't spent a lot of time testing it with enchanted tools, but from what I have tested it shouldn't change anything.
-
View User Profile
-
Send Message
Posted Mar 5, 2013@SmokyMiner Hey! Thanks for a great looking plugin! I was just wondering if it works ok with enchanted tool's, IE, is there any change to the way enchantments are displayed when using this plugin.
-
View User Profile
-
Send Message
Posted Mar 4, 2013@Sebeklis
Like the video, I only wish I could understand it lol, mind if I add it to the main post?
Not really sure I understand what your trying to suggest. If it's to only track the sword stats, you can already do that by disabling the all of the other tools in the config.
-
View User Profile
-
Send Message
Posted Mar 4, 2013@CheeseBallz02
@NyanCraftDe
Do you guys know what OS your server runs on?
@xH3LLRAIZ3Rx
Do you run your server on Win 8? I've tried almost everything I can think of to cause this error on Windows 7, and I don't think windows 8 is that much different.
@follet2004
@rizenLaydh
Thank you both for the info. I'll try to fix it for Linux asap.
-
View User Profile
-
Send Message
Posted Mar 4, 2013@CheeseBallz02
same here, and i use Windows 8
-
View User Profile
-
Send Message
Posted Mar 4, 2013The plugin is green, but the stats dont show and i get this error. http://pastebin.com/9GLh2g2u
-
View User Profile
-
Send Message
Posted Mar 4, 2013@SmokyMiner
I update the config and it do the error. It because in Linux the it do not support the "ยง" and make the error: unacceptable character '?' (0xFFFD). Do work on Windows because it support the "ยง". Lot of info in Google to help you in your codes. Can be easy to help you it you have GitHub. I'm a Dev too. :D
-
View User Profile
-
Send Message
Posted Mar 4, 2013http://www.youtube.com/watch?v=B2FPcG_H4jc
lol
Plugin is good but it could use to create a separate plugin which adds to the sword only statistics which "players" sugest :>
-
View User Profile
-
Send Message
Posted Mar 3, 2013@SmokyMiner
Hey, I'm having the same issues. I've started it first on my PC to test it out, no issues, was running perfectly fine. Afterwards I uploaded it to my server, but it didn't load up because of the same errors. I tried it out with the same plugins on my PC, it worked fine.
The only difference I can think of is on my PC it's windows, the server is running Linux.
Here are the errors and the plugin config. Never did any changes to the config, just had it running like it came:
http://nopaste.info/1a400997ce.html
-
View User Profile
-
Send Message
Posted Mar 3, 2013@follet2004
@NyanCraftDe
Did you get this error on first start up with the plugin or did you change some stuff in the config then get the error?
Either way please post your configs. I really appreciate you posting the stack-trace, but even with that information, I cannot recreate the error, and therefore cannot fix it.
-
View User Profile
-
Send Message
Posted Mar 3, 2013Same problem
-
View User Profile
-
Send Message
Posted Mar 3, 2013I have a error in the ''Cannot load configuration from stream'' here the link of the error. http://pastie.org/6369847
Nope you can fix soon later. : D
-
View User Profile
-
Send Message
Posted Feb 28, 2013@TheFaLLenNight
Expand on this, what kind of stats? Something like how the armor was damaged, like with sword, arrow, or fall damage?