Class ConfigIO

java.lang.Object
studio.magemonkey.fabled.data.io.IOManager
studio.magemonkey.fabled.data.io.ConfigIO

public class ConfigIO extends IOManager
IO manager that saves/loads to a .yml configuration file
  • Constructor Details

    • ConfigIO

      public ConfigIO(Fabled plugin)
      Initializes a new .yml config manager
      Parameters:
      plugin - Fabled reference
  • Method Details

    • loadAll

      public Map<UUID,PlayerAccounts> loadAll()
      Description copied from class: IOManager
      Loads player data for all online players
      Specified by:
      loadAll in class IOManager
      Returns:
      loaded player data
    • loadData

      public PlayerAccounts loadData(org.bukkit.OfflinePlayer player)
      Loads data for the given player
      Specified by:
      loadData in class IOManager
      Parameters:
      player - player to load data for
      Returns:
      loaded player data
    • saveData

      public void saveData(PlayerAccounts data)
      Saves player data to the config
      Specified by:
      saveData in class IOManager
      Parameters:
      data - data to save to the config
    • saveAll

      public void saveAll()
      Saves all player data to the config
      Overrides:
      saveAll in class IOManager