Posted June 8, 20196 yr Hello, how can I access player statistics on a server (for example the death count) ? On the Minecraft Wiki they say the stats are stored in a json:https://minecraft.gamepedia.com/Statistics#Storage Do I need to parse the values saved there or are there methods I can use ? Thank you for your help!
June 8, 20196 yr Author How can I access the StatisticsManager ? It has a method called readStat that has no player parameter, so I assume I can somehow get an object that corresponds to a specific player. How can I do that ?
June 8, 20196 yr Author For anybody reading this, it worked by doing this: int c = ((EntityPlayerMP) entity).getStatFile().readStat(StatList.DEATHS)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.