public class JsonPlayerStatisticIoService extends Object implements PlayerStatisticIoService
| Constructor and Description |
|---|
JsonPlayerStatisticIoService(GlowServer server,
File statsDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
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.
|
public JsonPlayerStatisticIoService(GlowServer server, File statsDir)
public void readStatistics(GlowPlayer player)
readStatistics in interface PlayerStatisticIoServiceplayer - the player to read the statistics frompublic void writeStatistics(GlowPlayer player)
writeStatistics in interface PlayerStatisticIoServiceplayer - the player to write the statistics file fromCopyright © 2021. All rights reserved.