I've seen plugins that repair your tools, but I'd like to have sort of a shop set up for my server. Ideally, it would just be a sign that said [RepairShop] or even [BlackSmith] or something and when you right click it with whatever tool you wanted repaired it would give you back a price in chat along with "Right click again to fix!" (and activate buy mode for like... 30 seconds) and once active, if you right click the sign you pay the amount shown and your tool is fixed. The amounts would be based first on the type of tool and then on the amount of damage. For a formula, maybe A = T*(d/m) where A=the final amount rounded to an integer, m=the max hits a tool has, d=the current hits already used, and then T=the tool base cost, definable in a config file. For instance, a diamond pick might have a set cost of 250. If it had 60/70 hits used, (yes, I know that isn't how much they have, I just picked numbers, work with me) then the cost would be 250*(60/70) (=214). If it had 1/70 hits used, then the cost would be 250*(1/70) (=4). Maybe I'm getting ahead of myself, but this would be perfect.