Class JsonPlayerStatisticIoService

java.lang.Object
net.glowstone.io.json.JsonPlayerStatisticIoService
All Implemented Interfaces:
PlayerStatisticIoService

public class JsonPlayerStatisticIoService extends Object implements PlayerStatisticIoService
  • Constructor Details

    • JsonPlayerStatisticIoService

      public JsonPlayerStatisticIoService(GlowServer server, File statsDir)
  • Method Details

    • readStatistics

      public void readStatistics(GlowPlayer player)
      Reads the stats of a player from its statistics file and writes the values to the StatisticMap.
      Specified by:
      readStatistics in interface PlayerStatisticIoService
      Parameters:
      player - the player to read the statistics from
    • writeStatistics

      public void writeStatistics(GlowPlayer player)
      Writes the statistics of the player into its statistics file.
      Specified by:
      writeStatistics in interface PlayerStatisticIoService
      Parameters:
      player - the player to write the statistics file from