Class PlayerStatsReader
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Reads the statistics the server keeps per player, for the player's profile.
public static class PlayerStatsReader
- Inheritance
-
PlayerStatsReader
- Inherited Members
Remarks
Read when a profile is opened and never copied: Minecraft already stores them, so they cost the
history nothing. They are filed by UUID, in <world>/stats/ up to 1.21 and in
<world>/players/stats/ from 26.1, where the player data moved under players/.
The format is the one from 1.13 on. Older servers wrote a different one; for them this answers "none", like for a player who never joined, rather than a wrong number.
The file is written by another process while this reads it, so nothing here throws: a category that is missing, truncated or not the shape it should be gives an empty list.
Methods
Read(string, string?)
public static PlayerStats? Read(string serverFolder, string? uuid)