Class FileStats

java.lang.Object
plugily.projects.buildbattle.user.data.FileStats
All Implemented Interfaces:
UserDatabase

public class FileStats
extends Object
implements UserDatabase
Created by Tom on 17/06/2015.
  • Constructor Details

    • FileStats

      public FileStats​(Main plugin)
  • Method Details

    • saveStatistic

      public void saveStatistic​(User user, StatsStorage.StatisticType stat)
      Description copied from interface: UserDatabase
      Saves player statistic into yaml or MySQL storage based on user choice
      Specified by:
      saveStatistic in interface UserDatabase
      Parameters:
      user - user to retrieve statistic from
      stat - stat to save to storage
    • saveAllStatistic

      public void saveAllStatistic​(User user)
      Description copied from interface: UserDatabase
      Saves player statistic into yaml or MySQL storage based on user choice
      Specified by:
      saveAllStatistic in interface UserDatabase
      Parameters:
      user - user to retrieve statistic from
    • loadStatistics

      public void loadStatistics​(User user)
      Description copied from interface: UserDatabase
      Loads player statistic from yaml or MySQL storage based on user choice
      Specified by:
      loadStatistics in interface UserDatabase
      Parameters:
      user - user to load statistic for