If you play Minecraft and you want to track your playtime, here’s how.
Please note that i just found it in Xfire official forum (this page).
First, locate your Xfire’s games list “xfire_games.ini”, usually found in C:\ProgramData\Xfire, then add this code to the list.
After that, make a copy of Minecraft’s exe into “C:\Program Files\Java\jre6\bin”. If still doesn’t get detected, try adding it manually trough Xfire options and it should work. Or, at least, it worked for me.
Raptr official forums
To get Minecraft detected by Raptr, create a folder called Minecraft in your Program Files folder and copy the exe inside it. The final path should be “C:\Program Files\Minecraft\Minecraft.exe”. Then make Raptr rescan your game list.
A final note. There’s no need to launch the game from one of those paths, i launch the game from a third copy inside my Documents folder and both program detect it.
UPDATE Oct 26,2012: As Doug pointed out in comments, if you’re using a 64-bit OS you must have Java 6 64-bit installed. Java 7 won’t recognize the game.