Package net.glowstone.io.json
Class JsonPlayerStatisticIoService
java.lang.Object
net.glowstone.io.json.JsonPlayerStatisticIoService
- All Implemented Interfaces:
PlayerStatisticIoService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
readStatistics
(GlowPlayer player) Reads the stats of a player from its statistics file and writes the values to the StatisticMap.void
writeStatistics
(GlowPlayer player) Writes the statistics of the player into its statistics file.
-
Constructor Details
-
JsonPlayerStatisticIoService
-
-
Method Details
-
readStatistics
Reads the stats of a player from its statistics file and writes the values to the StatisticMap.- Specified by:
readStatistics
in interfacePlayerStatisticIoService
- Parameters:
player
- the player to read the statistics from
-
writeStatistics
Writes the statistics of the player into its statistics file.- Specified by:
writeStatistics
in interfacePlayerStatisticIoService
- Parameters:
player
- the player to write the statistics file from
-