Fixed the bugs I was having, fully working now. Stats are saved using a separate thread so it shouldn't slow down Minecraft. Now I need to split up the JSON stat format into different files so it's not having to write huge files on every stat update.